diff options
-rw-r--r-- | src/sugar/bundle/bundle.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sugar/bundle/bundle.py b/src/sugar/bundle/bundle.py index a1b2686..5cf1c0b 100644 --- a/src/sugar/bundle/bundle.py +++ b/src/sugar/bundle/bundle.py @@ -61,10 +61,9 @@ class Bundle(object): def __init__(self, path): self._path = path self._zip_root_dir = None + self._zip_file = None - if os.path.isdir(self._path): - self._zip_file = None - else: + if not os.path.isdir(self._path): self._zip_file = zipfile.ZipFile(self._path) self._check_zip_bundle() |