@@ -46,10 +46,6 @@ def create_argument_parser():
4646 choices = [DatabaseType .sqlite3 .value , DatabaseType .postgreSQL .value ],
4747 help = "indicates whether you want to use sqlite3 or postgres for the database type."
4848 )
49- parser_obj .add_argument (
50- "--wall_e_models_location" , action = 'store' , default = None ,
51- help = "used to specify the absolute path to the wall_e_models" , metavar = "/path/to/wall_e_model/repo"
52- )
5349 parser_obj .add_argument (
5450 "--launch_wall_e" , action = 'store' , default = None , choices = ['true' , 'false' ], help = "script will run wall_e."
5551 )
@@ -84,7 +80,6 @@ def pull_variable_from_command_line_arguments(argparser):
8480 :return: (
8581 the dockerized_wall_e command-line flag
8682 the database type command-line flag
87- the wall_e_models location
8883 the launch_wall_e command-line flag
8984 the install_requirements command-line flag
9085 the setup_database command-line flag
@@ -97,7 +92,7 @@ def pull_variable_from_command_line_arguments(argparser):
9792 database_type = DatabaseType .postgreSQL .value
9893 return (
9994 convert_command_line_argument_to_menu_format (argparser .dockerized_wall_e ), database_type ,
100- argparser . wall_e_models_location , convert_command_line_argument_to_menu_format (argparser .launch_wall_e ),
95+ convert_command_line_argument_to_menu_format (argparser .launch_wall_e ),
10196 convert_command_line_argument_to_menu_format (argparser .install_requirements ),
10297 convert_command_line_argument_to_menu_format (argparser .setup_database )
10398
@@ -280,7 +275,7 @@ def take_user_input_for_string_variable(message, description=None, default_value
280275
281276(
282277 basic_config__DOCKERIZED_CMD_LINE_ARGUMENT , database_config__TYPE_CMD_LINE_ARGUMENT ,
283- WALL_E_MODEL_PATH_CMD_LINE_ARGUMENT , LAUNCH_WALL_E_CMD_LINE_ARGUMENT , INSTALL_REQUIREMENTS_CMD_LINE_ARGUMENT ,
278+ LAUNCH_WALL_E_CMD_LINE_ARGUMENT , INSTALL_REQUIREMENTS_CMD_LINE_ARGUMENT ,
284279 SETUP_DATABASE_CMD_LINE_ARGUMENT
285280) = pull_variable_from_command_line_arguments (args )
286281
@@ -329,16 +324,6 @@ def take_user_input_for_string_variable(message, description=None, default_value
329324 print ("Feel free to add that feature in or revert to using db.sqlite3" )
330325 exit (1 )
331326
332- WALL_E_MODEL_PATH = WALL_E_MODEL_PATH_CMD_LINE_ARGUMENT
333- while WALL_E_MODEL_PATH is None or not os .path .exists (WALL_E_MODEL_PATH ):
334- WALL_E_MODEL_PATH = get_string_variables (
335- "Please specify the relative/absolute path for the wall_e_model in the form /path/to/wall_e_model/repo" ,
336- "WALL_E_MODEL_PATH" ,
337- command_line_argument = WALL_E_MODEL_PATH , overwrite_env = overwrite_env_file ,
338- default_value = WALL_E_MODEL_PATH
339- )
340- if WALL_E_MODEL_PATH is not None and not os .path .exists (WALL_E_MODEL_PATH ):
341- print (f"path { WALL_E_MODEL_PATH } does not exist" )
342327LAUNCH_WALL_E = get_boolean_variable (
343328 "Do you you want this script to launch wall_e? [the alternative is to use PyCharm]" , "LAUNCH_WALL_E" ,
344329 command_line_argument = LAUNCH_WALL_E_CMD_LINE_ARGUMENT , overwrite_env = overwrite_env_file
@@ -396,7 +381,7 @@ def take_user_input_for_string_variable(message, description=None, default_value
396381
397382essential_variables_are_null = check_for_null_variables (
398383 basic_config__TOKEN = basic_config__TOKEN , basic_config__GUILD_ID = basic_config__GUILD_ID ,
399- basic_config__DOCKERIZED = basic_config__DOCKERIZED , WALL_E_MODEL_PATH = WALL_E_MODEL_PATH
384+ basic_config__DOCKERIZED = basic_config__DOCKERIZED
400385)
401386if essential_variables_are_null [0 ]:
402387 raise Exception (f"necessary variable { essential_variables_are_null [1 ]} is None" )
@@ -447,7 +432,6 @@ def take_user_input_for_string_variable(message, description=None, default_value
447432with open (RUN_ENV_FILE_LOCATION , "w" ) as f :
448433 f .seek (0 )
449434 f .write (f"""LAUNCH_WALL_E='{ LAUNCH_WALL_E } '
450- WALL_E_MODEL_PATH='{ WALL_E_MODEL_PATH } '
451435POSTGRES_PASSWORD='postgres_passwd'
452436ORIGIN_IMAGE='sfucsssorg/wall_e'
453437HELP_SELECTED='0'
0 commit comments