diff --git a/detoxpy/detox.py b/detoxpy/detox.py index a07777c..7fe5cd5 100755 --- a/detoxpy/detox.py +++ b/detoxpy/detox.py @@ -128,10 +128,10 @@ def run(self) -> List[Tuple[Path, Path]]: for change in changes: if self.plain_print: - print(change[1].name) + print(Path(change[1]).name) else: - print(f'\33[31m\'{change[0].name}\'\x1b[0m --> ' - f'\33[32m\'{change[1].name}\'\x1b[0m') + print(f'\33[31m\'{Path(change[0]).name}\'\x1b[0m --> ' + f'\33[32m\'{Path(change[1]).name}\'\x1b[0m') changes = [x for x in changes if Path(x[1]).exists()] return changes diff --git a/pyproject.toml b/pyproject.toml index 7a414d0..751a063 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "detoxpy" -version = "0.1.3" +version = "0.1.4" description = "A tool to rename directories/files that contain unsafe characters" authors = ["Alyetama "] license = "MIT"