Skip to content

Commit

Permalink
Add support for JSII_RUNTIME (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
garnaat authored Apr 4, 2019
1 parent a0741cc commit 23babed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@ def start(self):
environ = os.environ.copy()
environ["JSII_AGENT"] = f"Python/{platform.python_version()}"

jsii_runtime = environ.get('JSII_RUNTIME', self._jsii_runtime())

self._process = subprocess.Popen(
["node", self._jsii_runtime()],
["node", jsii_runtime],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
env=environ,
Expand Down

0 comments on commit 23babed

Please sign in to comment.