Skip to content

Commit c15b2d7

Browse files
authored
use str (#7)
1 parent f51613b commit c15b2d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyjs_code_runner/cli/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def browser_main(
122122
script: Path = script_option,
123123
async_main: bool = async_main_option,
124124
mounts: List[str] = mounts_option,
125-
relocate_prefix: Optional[Path] = relocate_prefix_option,
125+
relocate_prefix: Optional[str] = relocate_prefix_option,
126126
work_dir: Optional[Path] = work_dir_option,
127127
pkg_file_filter: Optional[List[Path]] = pkg_file_filter_option,
128128
pyjs_dir: Optional[Path] = pyjs_dir_option,
@@ -156,7 +156,7 @@ def browser_worker(
156156
script: Path = script_option,
157157
async_main: bool = async_main_option,
158158
mounts: List[str] = mounts_option,
159-
relocate_prefix: Optional[Path] = relocate_prefix_option,
159+
relocate_prefix: Optional[str] = relocate_prefix_option,
160160
work_dir: Optional[Path] = work_dir_option,
161161
pkg_file_filter: List[Path] = pkg_file_filter_option,
162162
pyjs_dir: Optional[Path] = pyjs_dir_option,
@@ -197,7 +197,7 @@ def node(
197197
script: Path = script_option,
198198
async_main: bool = async_main_option,
199199
mounts: List[str] = mounts_option,
200-
relocate_prefix: Optional[Path] = relocate_prefix_option,
200+
relocate_prefix: Optional[str] = relocate_prefix_option,
201201
work_dir: Optional[Path] = work_dir_option,
202202
pkg_file_filter: List[Path] = pkg_file_filter_option,
203203
pyjs_dir: Optional[Path] = pyjs_dir_option,

pyjs_code_runner/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def run(
9191
host_work_dir=None,
9292
backend_kwargs=None,
9393
):
94+
relocate_prefix = str(relocate_prefix)
9495
if host_work_dir is not None:
9596
host_work_dir = Path(host_work_dir)
9697

0 commit comments

Comments
 (0)