Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Feb 19, 2019
1 parent abf98d8 commit 6b34d4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/services/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ def __getitem__(self, key):
if len(sys.argv) >= idx+2 and sys.argv[idx+1][:2] != "--":
ARGV[key[2:]] = sys.argv[idx+1]
else:
ARGV[key] = True
ARGV[key[2:]] = True

# used to determine various behaviours in other modules
if len(sys.argv)>1:
ARGV['mode'] = "console" if sys.argv[1] == "console" else "script"


# load config
load_config(ARGV['network'])

0 comments on commit 6b34d4d

Please sign in to comment.