Merge pull request #3041 from JProffitt71/bugfix_evennia_launcher_set_gamedir

fix: set_gamedir use provided path and SETTINGS_DOTPATH
This commit is contained in:
Griatch 2022-12-23 17:00:21 +01:00 committed by GitHub
commit 41c6e99c8e

View file

@ -1371,8 +1371,8 @@ def set_gamedir(path):
global GAMEDIR
Ndepth = 10
settings_path = os.path.join("server", "conf", "settings.py")
os.chdir(GAMEDIR)
settings_path = SETTINGS_DOTPATH.replace(".", os.sep) + ".py"
os.chdir(path)
for i in range(Ndepth):
gpath = os.getcwd()
if "server" in os.listdir(gpath):