We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841e1d3 commit 8925da0Copy full SHA for 8925da0
1 file changed
build_sdl.py
@@ -261,11 +261,15 @@ def on_directive_handle(
261
262
SDL_INCLUDE: Path
263
if "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}")
+ import pprint
+
+ pprint.pprint(dict(os.environ))
+ for path in os.environ["PATH"].split(os.pathsep):
+ if Path(path, "../upstream/emscripten").exists():
269
+ SDL_INCLUDE = Path(path)
270
+ break
271
+ else:
272
+ raise AssertionError
273
SDL_INCLUDE = Path(os.environ["EMSCRIPTEN"], "include")
274
elif sys.platform == "win32" and SDL_PARSE_PATH is not None:
275
SDL_INCLUDE = SDL_PARSE_PATH / "include"
0 commit comments