Task.py 417 B

12345678910111213
  1. """ This module exists temporarily as a gatekeeper between
  2. TaskOrig.py, the original Python implementation of the task system,
  3. and TaskNew.py, the new C++ implementation. """
  4. wantNewTasks = False
  5. if __debug__:
  6. from pandac.PandaModules import ConfigVariableBool
  7. wantNewTasks = ConfigVariableBool('want-new-tasks', False).getValue()
  8. if wantNewTasks:
  9. from TaskNew import *
  10. else:
  11. from TaskOrig import *