chore: add pathlib check
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
committed by
Henry Schreiner
parent
3e37148923
commit
783be9bc2f
@@ -292,7 +292,7 @@ def build(options: Options, tmp_path: Path) -> None:
|
||||
# directory.
|
||||
oldmounts = ""
|
||||
extra_mounts = [str(identifier_tmp_dir)]
|
||||
if str(Path.cwd()).startswith("/tmp"):
|
||||
if Path.cwd().is_relative_to("/tmp"):
|
||||
extra_mounts.append(str(Path.cwd()))
|
||||
|
||||
if "_PYODIDE_EXTRA_MOUNTS" in env:
|
||||
|
||||
Reference in New Issue
Block a user