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:
commit
41c6e99c8e
1 changed files with 2 additions and 2 deletions
|
|
@ -1371,8 +1371,8 @@ def set_gamedir(path):
|
||||||
global GAMEDIR
|
global GAMEDIR
|
||||||
|
|
||||||
Ndepth = 10
|
Ndepth = 10
|
||||||
settings_path = os.path.join("server", "conf", "settings.py")
|
settings_path = SETTINGS_DOTPATH.replace(".", os.sep) + ".py"
|
||||||
os.chdir(GAMEDIR)
|
os.chdir(path)
|
||||||
for i in range(Ndepth):
|
for i in range(Ndepth):
|
||||||
gpath = os.getcwd()
|
gpath = os.getcwd()
|
||||||
if "server" in os.listdir(gpath):
|
if "server" in os.listdir(gpath):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue