From 7cd4ca07edfd1c88b1422395e2f198cff6b2fafd Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 24 Feb 2023 11:37:14 +0100 Subject: [PATCH] task: Check sys.platform instead of PandaSystem for emscripten tag This seems to have been standardized in upstream cpython now --- direct/src/task/Task.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/direct/src/task/Task.py b/direct/src/task/Task.py index b65a7149cc..24358b3573 100644 --- a/direct/src/task/Task.py +++ b/direct/src/task/Task.py @@ -36,7 +36,6 @@ from panda3d.core import ( ClockObject, ConfigVariableBool, GlobPattern, - PandaSystem, PythonTask, Thread, ) @@ -539,7 +538,7 @@ class TaskManager: """Starts the task manager running. Does not return until an exception is encountered (including KeyboardInterrupt). """ - if PandaSystem.getPlatform() == 'emscripten': + if sys.platform == 'emscripten': return # Set the clock to have last frame's time in case we were