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:
parent
bb5a4c0a64
commit
24e63939fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user