diff options
-rwxr-xr-x | unperish | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -178,10 +178,10 @@ class Unperish(cliapp.Application): if os.path.isdir(area): for x in os.listdir(area): pathname = os.path.join(area, x) - if os.path.isdir(x): - shutil.rmtree(x) + if os.path.isdir(pathname): + shutil.rmtree(pathname) else: - os.remove(x) + os.remove(pathname) def add_debian_changelog_entry(self): target = self.settings['upload-target'] |