updated script search logic

This commit is contained in:
dtookey 2020-10-02 14:58:49 -04:00
parent 1f86269bbb
commit bd675bdd32

View File

@ -48,7 +48,7 @@ def get_base_dir() -> str:
current = split[len(split) - 1] current = split[len(split) - 1]
if current == 'commands': if current == 'commands':
return check_dir(cwd) return check_dir(cwd)
if current == 'Praxis_Bot': elif current == 'Praxis_Bot' or current == 'Praxis':
return check_dir(os.path.join(current, "commands")) return check_dir(os.path.join(current, "commands"))
else: else:
print("could not find working directory for Praxis_Bot/commands") print("could not find working directory for Praxis_Bot/commands")