Commit 6a1c25d4 authored by Oskar Skog's avatar Oskar Skog

Only attempt to load Windows configuration files on Windows

parent eddbecba
2019-07-14 Oskar Skog <https://oskog97.com/#contact>
0.5.12
* anonymine.py (input): Don't require mouse support
* cursescfg: Don't require mouse support
* anonymine.py (curses_game (__init__, input)), cursescfg:
- Don't require mouse support
* anonymine.py (main): Only attempt to load Windows configuration files
on Windows.
2019-07-13 Oskar Skog <https://oskog97.com/#contact>
0.5.11
......
......@@ -1539,12 +1539,13 @@ def main():
if cfgfile in parameters:
cfgfiles[cfgfile] = parameters[cfgfile]
else:
locations = (
locations = [
os.path.expanduser('~/.' + GAME_FILENAME + '/' + cfgfile),
"MAKEFILE_CFGDIR" + '/' + cfgfile,
'/etc/' + GAME_FILENAME + '/' + cfgfile,
'windows-beta/' + cfgfile,
)
]
if sys.platform.startswith('win'):
locations.append('windows-beta/' + cfgfile)
for location in locations:
try:
open(location)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment