Add current dir to solc allowed import paths

pull/48/head
Bernhard Mueller 7 years ago
parent 2c2f6905ff
commit 0639aec254
  1. 3
      mythril/ether/util.py
  2. 1
      zeppelin-solidity

@ -16,8 +16,9 @@ def safe_decode(hex_encoded_string):
def compile_solidity(solc_binary, file):
try:
p = Popen([solc_binary, "--bin-runtime", file], stdout=PIPE, stderr=PIPE)
p = Popen([solc_binary, "--bin-runtime", '--allow-paths', ".", file], stdout=PIPE, stderr=PIPE)
stdout, stderr = p.communicate()
ret = p.returncode
if ret < 0:

@ -0,0 +1 @@
/Users/bernhardmueller/Projects/zeppelin-solidity/
Loading…
Cancel
Save