mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-02-19 05:07:43 +05:30
BB_plush_watch_temp_files.py: change the key name and extract it
This commit is contained in:
parent
bb5a4c0a64
commit
24e63939fa
@ -20,7 +20,8 @@ from sys import exit
|
|||||||
if exists(".env"):
|
if exists(".env"):
|
||||||
load_dotenv()
|
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(),
|
PATH_TO_WATCH = path_join(gettempdir(),
|
||||||
"Basically Games", "Baldi's Basics Plus")
|
"Basically Games", "Baldi's Basics Plus")
|
||||||
@ -32,10 +33,10 @@ def respectful_makedirs(path: str) -> None:
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if EXEC_PATH is None:
|
if EXEC_PATH is None:
|
||||||
print("Please create a .env file in the current directory with key "
|
print( "Please create a .env file in the current directory with key "
|
||||||
"BBIEAL_EXECUTABLE_PATH, containing path to the executable of "
|
f"{EXEC_KEY}, containing path to the executable of your copy of "
|
||||||
"your copy of the video game Baldi's Basics Plus, or set such an "
|
"the video game Baldi's Basics Plus, or set such an "
|
||||||
"environmental variable.")
|
"environmental variable.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print("Path to watch:", PATH_TO_WATCH)
|
print("Path to watch:", PATH_TO_WATCH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user