Skip to content

Commit 65e95e0

Browse files
committed
added start info for subprocess on mono
1 parent 41b1a2c commit 65e95e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compas/rpc/proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,13 @@ def start_server(self):
223223
224224
"""
225225
python = self.python
226+
env = compas._os.prepare_environment()
226227

227228
try:
228229
Popen
229230
except NameError:
230231
self._process = Process()
232+
self._process.StartInfo.EvironmentVariables = env
231233
self._process.StartInfo.UseShellExecute = False
232234
self._process.StartInfo.RedirectStandardOutput = True
233235
self._process.StartInfo.RedirectStandardError = True
@@ -236,7 +238,6 @@ def start_server(self):
236238
self._process.Start()
237239
else:
238240
args = [python, '-m', self.service, str(self._port)]
239-
env = compas._os.prepare_environment()
240241
self._process = Popen(args, stdout=PIPE, stderr=STDOUT, env=env)
241242

242243
server = ServerProxy(self.address)

0 commit comments

Comments
 (0)