File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,10 @@ def start_dev_server(config: Config, file_path: Optional[str] = None):
9090
9191
9292def start_app_normally (config : Config ):
93- # Parsing the known and unknown arguments
94- known_arguments , unknown_args = config .parser .parse_known_args ()
93+ command = [sys .executable ]
9594
96- # Convert known arguments to a list of strings suitable for subprocess.run
97- known_args_list = [f"{ key } ={ value } " for key , value in vars (known_arguments ).items () if value is not None ]
98-
99- # Combine the python executable, unknown arguments, and known arguments
100- command = [sys .executable , * unknown_args , * known_args_list ]
95+ for arg in sys .argv [1 :]:
96+ command .append (arg )
10197
10298 # Run the subprocess
10399 subprocess .run (command , start_new_session = False )
You can’t perform that action at this time.
0 commit comments