From 88f6b5b38dc96de374a21e446c6959ae1934fd2b Mon Sep 17 00:00:00 2001 From: Vishnu Sanal T <50027064+VishnuSanal@users.noreply.github.com> Date: Sat, 28 Sep 2024 17:55:41 +0530 Subject: [PATCH] fix: module params (#967) --- robyn/cli.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/robyn/cli.py b/robyn/cli.py index 86f925d18..a9d6a6502 100644 --- a/robyn/cli.py +++ b/robyn/cli.py @@ -90,14 +90,10 @@ def start_dev_server(config: Config, file_path: Optional[str] = None): def start_app_normally(config: Config): - # Parsing the known and unknown arguments - known_arguments, unknown_args = config.parser.parse_known_args() + command = [sys.executable] - # Convert known arguments to a list of strings suitable for subprocess.run - known_args_list = [f"{key}={value}" for key, value in vars(known_arguments).items() if value is not None] - - # Combine the python executable, unknown arguments, and known arguments - command = [sys.executable, *unknown_args, *known_args_list] + for arg in sys.argv[1:]: + command.append(arg) # Run the subprocess subprocess.run(command, start_new_session=False)