Cleanup, prep for editor
This commit is contained in:
20
tools/dusk/defs.py
Normal file
20
tools/dusk/defs.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
import sys
|
||||
|
||||
current_file_path = os.path.abspath(__file__)
|
||||
print(current_file_path)
|
||||
|
||||
ASSET_FILE_NAME_MAX_LENGTH = 256
|
||||
|
||||
|
||||
duskDefsPath = os.path.join(os.path.dirname(current_file_path), "..", "..", "src", "duskdefs.env")
|
||||
|
||||
# Ensure the .env file exists
|
||||
if not os.path.isfile(duskDefsPath):
|
||||
print(f"Error: .env file not found at {duskDefsPath}")
|
||||
sys.exit(1)
|
||||
|
||||
load_dotenv(dotenv_path=duskDefsPath)
|
||||
|
||||
defs = {key: os.getenv(key) for key in os.environ.keys()}
|
||||
Reference in New Issue
Block a user