mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 05:17:05 +08:00
Fix sith.py for default --record
This commit is contained in:
1 parent
4f66173603
commit
868a4b5dd8
1 file changed
+1
-1
@@ -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