Skip to content

Commit 229cbe2

Browse files
committed
try fix test case
1 parent f656299 commit 229cbe2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

zipapps/activate_zipapps.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ def activate(path=None):
99
path_str = path.absolute().as_posix()
1010
if zipfile.is_zipfile(path_str):
1111
try:
12-
sys.path.insert(0, path_str)
1312
ensure_zipapps = importlib.import_module("ensure_zipapps")
1413
del ensure_zipapps
1514
sys.modules.pop("ensure_zipapps", None)
1615
except ImportError as err:
1716
sys.stderr.write(f"WARNING: activate failed for {err!r}\n")
1817
raise err
19-
finally:
20-
if sys.path[0] == path_str:
21-
sys.path.pop(0)

0 commit comments

Comments
 (0)