Skip to content

Commit 0bf61d8

Browse files
committed
Bugfix: get old CWD before setting a new one.
1 parent 073a356 commit 0bf61d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security-scanner/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def __init__(self, dirname):
77
self._old_cwd = None
88

99
def __enter__(self):
10-
os.chdir(self._cwd)
1110
self._old_cwd = os.getcwd()
11+
os.chdir(self._cwd)
1212
return self
1313

1414
def __exit__(self, _, __, ___):

0 commit comments

Comments
 (0)