mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
Fix sith.py for default --record
This commit is contained in:
2
sith.py
2
sith.py
@@ -86,7 +86,7 @@ class BaseAttacker(object):
|
|||||||
return self.record['data'][recid]
|
return self.record['data'][recid]
|
||||||
|
|
||||||
def save_record(self, path):
|
def save_record(self, path):
|
||||||
directory = os.path.dirname(path)
|
directory = os.path.dirname(os.path.abspath(path))
|
||||||
if not os.path.isdir(directory):
|
if not os.path.isdir(directory):
|
||||||
os.makedirs(directory)
|
os.makedirs(directory)
|
||||||
with open(path, 'w') as f:
|
with open(path, 'w') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user