updated script search logic
This commit is contained in:
parent
1f86269bbb
commit
bd675bdd32
@ -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")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user