We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a1a8c0 commit 4418a4fCopy full SHA for 4418a4f
1 file changed
ghpythonremote/connectors.py
@@ -382,7 +382,7 @@ def _launch_rhino(self):
382
assert self.rpyc_server_py is not "" and self.rpyc_server_py is not None
383
assert self.port is not "" and self.port is not None
384
rhino_call = [
385
- self.rhino_exe,
+ '"' + self.rhino_exe + '"',
386
"/nosplash",
387
"/notemplate",
388
'/runscript="-_RunPythonScript ""{!s}"" {!s} -_Exit "'.format(
@@ -391,6 +391,9 @@ def _launch_rhino(self):
391
]
392
if self.rhino_file_path:
393
rhino_call.append(self.rhino_file_path)
394
+ # Default escaping in subprocess.line2cmd does not work here,
395
+ # manually convert to string
396
+ rhino_call = " ".join(rhino_call)
397
rhino_popen = subprocess.Popen(
398
rhino_call, stdout=subprocess.PIPE, stdin=subprocess.PIPE
399
)
0 commit comments