1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-10 15:52:04 +05:30

BB_plush_watch_temp_files.py: change the key name and extract it

This commit is contained in:
Intel A80486DX2-66 2024-07-03 19:50:58 +03:00
parent bb5a4c0a64
commit 24e63939fa
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -20,7 +20,8 @@ from sys import exit
if exists(".env"):
load_dotenv()
EXEC_PATH = environ.get("BBIEAL_EXECUTABLE_PATH", None)
EXEC_KEY = "BALDI_PLUS_EXECUTABLE_PATH"
EXEC_PATH = environ.get(EXEC_KEY, None)
PATH_TO_WATCH = path_join(gettempdir(),
"Basically Games", "Baldi's Basics Plus")
@ -32,10 +33,10 @@ def respectful_makedirs(path: str) -> None:
if __name__ == "__main__":
if EXEC_PATH is None:
print("Please create a .env file in the current directory with key "
"BBIEAL_EXECUTABLE_PATH, containing path to the executable of "
"your copy of the video game Baldi's Basics Plus, or set such an "
"environmental variable.")
print( "Please create a .env file in the current directory with key "
f"{EXEC_KEY}, containing path to the executable of your copy of "
"the video game Baldi's Basics Plus, or set such an "
"environmental variable.")
exit(1)
print("Path to watch:", PATH_TO_WATCH)