File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,15 @@ def on_directive_handle(
261261
262262SDL_INCLUDE : Path
263263if "PYODIDE" in os .environ :
264- logger .info (f"{ os .environ .get ('EMSDK' )= } " )
265- logger .info (f"{ os .environ .get ('EMSCRIPTEN' )= } " )
266- logger .info (f"{ os .environ .get ('EMSCRIPTEN_ROOT' )= } " )
267- logger .info (f"{ os .environ .get ('PATH' )= } " )
268- logger .info (f"{ os .environ } " )
264+ import pprint
265+
266+ pprint .pprint (dict (os .environ ))
267+ for path in os .environ ["PATH" ].split (os .pathsep ):
268+ if Path (path , "../upstream/emscripten" ).exists ():
269+ SDL_INCLUDE = Path (path )
270+ break
271+ else :
272+ raise AssertionError
269273 SDL_INCLUDE = Path (os .environ ["EMSCRIPTEN" ], "include" )
270274elif sys .platform == "win32" and SDL_PARSE_PATH is not None :
271275 SDL_INCLUDE = SDL_PARSE_PATH / "include"
You can’t perform that action at this time.
0 commit comments