Skip to content

Commit f380bbf

Browse files
authored
Init config dir (#1595)
1 parent ed90d24 commit f380bbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mythril/interfaces/cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ def parse_args_and_execute(parser: ArgumentParser, args: Namespace) -> None:
977977
sys.exit()
978978

979979
if args.command in CONCOLIC_LIST:
980+
_ = MythrilConfig.init_mythril_dir()
980981
with open(args.input) as f:
981982
concrete_data = json.load(f)
982983
output_list = concolic_execution(

mythril/mythril/mythril_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MythrilConfig:
2222

2323
def __init__(self):
2424
self.infura_id = os.getenv("INFURA_ID") # type: str
25-
self.mythril_dir = self._init_mythril_dir()
25+
self.mythril_dir = self.init_mythril_dir()
2626
self.config_path = os.path.join(self.mythril_dir, "config.ini")
2727
self._init_config()
2828
self.eth = None # type: Optional[EthJsonRpc]
@@ -31,7 +31,7 @@ def set_api_infura_id(self, id):
3131
self.infura_id = id
3232

3333
@staticmethod
34-
def _init_mythril_dir() -> str:
34+
def init_mythril_dir() -> str:
3535
"""
3636
Initializes the mythril dir and config.ini file
3737
:return: The mythril dir's path

0 commit comments

Comments
 (0)