fix FileNotFoundError if directory is empty (e.g. path is only a file in

the pwd)
pull/545/head
tintinweb 6 years ago
parent 2c72a5b0e4
commit 2d5b1bbe4a
  1. 2
      mythril/support/signatures.py

@ -125,7 +125,7 @@ class SignatureDb(object):
sigs.update(self.signatures) # reload file and merge cached sigs into what we load from file
self.signatures = sigs
if not os.path.exists(directory):
if directory and not os.path.exists(directory):
os.makedirs(directory) # create folder structure if not existS
if not os.path.exists(path): # creates signatures.json file if it doesn't exist

Loading…
Cancel
Save