Skip to content

Commit e30284b

Browse files
committed
Fix get_workspace_root to work inside emsdk repo
1 parent 31882f3 commit e30284b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

refresh.template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,8 @@ def _emscripten_platform_patch(compile_args: typing.List[str]):
771771
assert sysroot, f'Emscripten sysroot not detected in CMD: {compile_args}'
772772

773773
def get_workspace_root(path_from_execroot: pathlib.PurePath):
774-
assert path_from_execroot.parts[0] == 'external'
774+
if path_from_execroot.parts[0] != 'external':
775+
return pathlib.PurePath('.')
775776
return pathlib.PurePath('external') / path_from_execroot.parts[1]
776777

777778
environment = {

0 commit comments

Comments
 (0)