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)
|
||||
# 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:
|
||||
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 args.paramsFileName is not None:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from logic.smbool import SMBool
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# the different difficulties available
|
||||
easy = 1
|
||||
|
@ -60,7 +61,7 @@ def diff4solver(difficulty):
|
|||
return "mania"
|
||||
|
||||
# allow multiple local repo
|
||||
appDir = sys.path[0]
|
||||
appDir = Path(__file__).parents[4]
|
||||
|
||||
def isKnows(knows):
|
||||
return knows[0:len('__')] != '__' and knows[0] == knows[0].upper()
|
||||
|
|
Loading…
Reference in New Issue