Update path
Some checks are pending
Create and publish a Docker image / build-and-push-image (push) Waiting to run
Some checks are pending
Create and publish a Docker image / build-and-push-image (push) Waiting to run
This commit is contained in:
parent
e5ede625b3
commit
432dee5cc4
@ -105,7 +105,7 @@ def load_config() -> None:
|
|||||||
"""
|
"""
|
||||||
database_setup()
|
database_setup()
|
||||||
if os.path.exists("/.dockerenv"):
|
if os.path.exists("/.dockerenv"):
|
||||||
file_path = "/config/config.yaml"
|
file_path = "config/config.yaml"
|
||||||
else:
|
else:
|
||||||
file_path = "config.yaml"
|
file_path = "config.yaml"
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ def load_config() -> None:
|
|||||||
validate_config(contents)
|
validate_config(contents)
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
with open("config.yaml", "w") as f:
|
with open(file_path, "w") as f:
|
||||||
f.write(
|
f.write(
|
||||||
"""
|
"""
|
||||||
bot_info:
|
bot_info:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user