Skip to content

Commit

Permalink
Merge pull request #79 from trb143/flex_config
Browse files Browse the repository at this point in the history
Add Enviroment config option - Thanks @trb143
  • Loading branch information
v1k1ngfr authored Aug 5, 2024
2 parents 42bb31a + 3d941d7 commit 8e2d96b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea/
__pycache__/
*.pyc
.arsenal.json
arsenal/data/cheats/.obsidian/
cheats/.obsidian/
cheats/Arsenal/.obsidian/
Expand Down
5 changes: 4 additions & 1 deletion arsenal/modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
os.environ.setdefault('ESCDELAY', '25')
os.environ['TERM'] = 'xterm-256color'

savevarfile = join(HOMEPATH, ".arsenal.json")
if os.environ.get('ARSENAL_LOCAL'):
savevarfile = join(os.getcwd(), ".arsenal.json")
else:
savevarfile = join(HOMEPATH, ".arsenal.json")

PREFIX_GLOBALVAR_NAME = "arsenal_prefix_cmd"

0 comments on commit 8e2d96b

Please sign in to comment.