소스 검색

don't import PandaModules here

David Rose 21 년 전
부모
커밋
3413263516
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      direct/src/task/Task.py

+ 7 - 1
direct/src/task/Task.py

@@ -1,6 +1,12 @@
 
-from pandac.PandaModules import *
+# This module may not import pandac.PandaModules, since it is imported
+# by the Toontown Launcher before the complete PandaModules have been
+# downloaded.  Instead, it imports only libpandaexpressModules, the
+# subset of PandaModules that we know is available immediately.
+# Methods that require more advanced C++ methods may import the
+# appropriate files within their own scope.
 from pandac.libpandaexpressModules import *
+
 from direct.directnotify.DirectNotifyGlobal import *
 from direct.showbase.PythonUtil import *
 from direct.showbase.MessengerGlobal import *