From efb8b0f8de9a12db65389d0ea6e877365b9ba903 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:04:49 -0600 Subject: [PATCH] Update launcher.py --- launcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher.py b/launcher.py index 98bb6ef..21787ca 100644 --- a/launcher.py +++ b/launcher.py @@ -72,6 +72,9 @@ def load_env_variables(env_filename='subgen.env'): print(f"{env_filename} file not found. Please run prompt_and_save_env_variables() first.") def main(): + #Make sure we're saving subgen.py and subgen.env in the right folder + os.chdir(os.path.dirname(os.path.abspath(__file__))) + # Construct the argument parser parser = argparse.ArgumentParser() parser.add_argument( '-d', '--debug', default=False, action='store_true', help="Enable console debugging (default: False)")