mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
[fix] start search in set_gamedir from passed path
[fix] use current SETTINGS_DOTPATH value in set_gamedir search
This commit is contained in:
parent
290475a9fe
commit
8f04fb1abc
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue