Super Metroid: fix some file paths
This commit is contained in:
parent
2ffa0d0e7f
commit
4cd9711de3
|
@ -327,7 +327,7 @@ class VariaRandomizer:
|
||||||
preset = loadRandoPreset(world, self.player, args)
|
preset = loadRandoPreset(world, self.player, args)
|
||||||
# use the skill preset from the rando preset
|
# use the skill preset from the rando preset
|
||||||
if preset is not None and preset != 'custom' and preset != 'varia_custom' and args.paramsFileName is None:
|
if preset is not None and preset != 'custom' and preset != 'varia_custom' and args.paramsFileName is None:
|
||||||
args.paramsFileName = '{}/{}/{}.json'.format(appDir, getPresetDir(preset), preset)
|
args.paramsFileName = os.path.join(appDir, getPresetDir(preset), preset+".json")
|
||||||
|
|
||||||
# if diff preset given, load it
|
# if diff preset given, load it
|
||||||
if args.paramsFileName is not None:
|
if args.paramsFileName is not None:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from logic.smbool import SMBool
|
from logic.smbool import SMBool
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
# the different difficulties available
|
# the different difficulties available
|
||||||
easy = 1
|
easy = 1
|
||||||
|
@ -60,7 +61,7 @@ def diff4solver(difficulty):
|
||||||
return "mania"
|
return "mania"
|
||||||
|
|
||||||
# allow multiple local repo
|
# allow multiple local repo
|
||||||
appDir = sys.path[0]
|
appDir = Path(__file__).parents[4]
|
||||||
|
|
||||||
def isKnows(knows):
|
def isKnows(knows):
|
||||||
return knows[0:len('__')] != '__' and knows[0] == knows[0].upper()
|
return knows[0:len('__')] != '__' and knows[0] == knows[0].upper()
|
||||||
|
|
Loading…
Reference in New Issue