From b0858e464775941e2624ba3c4953a7f32d941bbf Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Fri, 26 Jan 2024 15:33:16 +0100 Subject: [PATCH] parse args to app_starter.py --- scraibe/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scraibe/cli.py b/scraibe/cli.py index 618f6d8..2654b9c 100644 --- a/scraibe/cli.py +++ b/scraibe/cli.py @@ -169,7 +169,10 @@ def cli(): execute_path = os.path.join(os.path.dirname(__file__), "app/app_starter.py") - subprocess.run([sys.executable, execute_path]) + config = arg_dict.pop("server_config") + server_kwargs = arg_dict.pop("server_kwargs") + + subprocess.run([sys.executable, execute_path, f"--server-config={config}", f"--server-kwargs={server_kwargs}"]) if __name__ == "__main__": cli() \ No newline at end of file