Skip to content

Commit b520e93

Browse files
committed
fix module params
1 parent 399f5b1 commit b520e93

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

robyn/cli.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,10 @@ def start_dev_server(config: Config, file_path: Optional[str] = None):
9090

9191

9292
def 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)

0 commit comments

Comments
 (0)