diff options
Diffstat (limited to 'scripts/do-release.py')
-rw-r--r-- | scripts/do-release.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/do-release.py b/scripts/do-release.py index 5c4fff04..239e7085 100644 --- a/scripts/do-release.py +++ b/scripts/do-release.py @@ -499,9 +499,7 @@ class Upload(object): return os.path.join(new_parent, os.path.basename(path)) def parent_dir(self, path): - if path.endswith('/'): - path = path[:-1] - return os.path.dirname(path) + return os.path.dirname(path.rstrip('/')) def make_images_public(self, image_files): server = config.images_server |