From 8a2b12ebf987da1df86414166135261abf5b2315 Mon Sep 17 00:00:00 2001 From: Mitch Garnaat Date: Tue, 9 Apr 2019 11:07:18 -0700 Subject: [PATCH] Need to turn the WindowsPath object into a str. Fixes #433. --- .../jsii-python-runtime/src/jsii/_kernel/providers/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jsii-python-runtime/src/jsii/_kernel/providers/process.py b/packages/jsii-python-runtime/src/jsii/_kernel/providers/process.py index d1fc815027..bd8005c52b 100644 --- a/packages/jsii-python-runtime/src/jsii/_kernel/providers/process.py +++ b/packages/jsii-python-runtime/src/jsii/_kernel/providers/process.py @@ -253,7 +253,7 @@ def _jsii_runtime(self): assert os.path.commonpath(paths) == os.path.dirname(paths[0]) # Return our first path, which should be the path for jsii-runtime.js - return paths[0] + return str(paths[0]) def _next_message(self) -> Mapping[Any, Any]: return json.loads(self._process.stdout.readline(), object_hook=ohook)