Browse Source

direct: libpandaexpress -> panda3d.core

Sam Edwards 12 years ago
parent
commit
b7ddeacc8b

+ 2 - 4
direct/src/directnotify/DirectNotify.py

@@ -61,10 +61,8 @@ class DirectNotify:
         """
         """
 
 
         # We use ConfigVariableString instead of base.config, in case
         # We use ConfigVariableString instead of base.config, in case
-        # we're running before ShowBase has finished initializing; and
-        # we import it directly from libpandaexpress, in case we're
-        # running before libpanda.dll is available.
-        from libpandaexpress import ConfigVariableString
+        # we're running before ShowBase has finished initializing
+        from panda3d.core import ConfigVariableString
 
 
         dconfigParam = ("notify-level-" + categoryName)
         dconfigParam = ("notify-level-" + categoryName)
         cvar = ConfigVariableString(dconfigParam, "")
         cvar = ConfigVariableString(dconfigParam, "")

+ 2 - 2
direct/src/directnotify/Notifier.py

@@ -4,7 +4,7 @@ for the programmer/user
 """
 """
 from LoggerGlobal import defaultLogger
 from LoggerGlobal import defaultLogger
 from direct.showbase import PythonUtil
 from direct.showbase import PythonUtil
-from libpandaexpress import ConfigVariableBool
+from panda3d.core import ConfigVariableBool
 import time
 import time
 import types
 import types
 import sys
 import sys
@@ -18,7 +18,7 @@ class Notifier:
     # with the C++ notify system.
     # with the C++ notify system.
     streamWriter = None
     streamWriter = None
     if ConfigVariableBool('notify-integrate', True):
     if ConfigVariableBool('notify-integrate', True):
-        from libpandaexpress import StreamWriter, Notify
+        from panda3d.core import StreamWriter, Notify
         streamWriter = StreamWriter(Notify.out(), False)
         streamWriter = StreamWriter(Notify.out(), False)
         
         
     showTime = ConfigVariableBool('notify-timestamp', False)
     showTime = ConfigVariableBool('notify-timestamp', False)

+ 1 - 1
direct/src/showbase/Messenger.py

@@ -7,7 +7,7 @@ from PythonUtil import *
 from direct.directnotify import DirectNotifyGlobal
 from direct.directnotify import DirectNotifyGlobal
 import types
 import types
 
 
-from libpandaexpress import ConfigVariableBool
+from panda3d.core import ConfigVariableBool
 
 
 # If using the Toontown ActiveX launcher, this must be set true.
 # If using the Toontown ActiveX launcher, this must be set true.
 # Also, Panda must be compiled with SIMPLE_THREADS or no HAVE_THREADS
 # Also, Panda must be compiled with SIMPLE_THREADS or no HAVE_THREADS

+ 1 - 1
direct/src/showbase/ProfileSession.py

@@ -1,4 +1,4 @@
-from pandac.libpandaexpressModules import TrueClock
+from panda3d.core import TrueClock
 from direct.directnotify.DirectNotifyGlobal import directNotify
 from direct.directnotify.DirectNotifyGlobal import directNotify
 from direct.showbase.PythonUtil import (
 from direct.showbase.PythonUtil import (
     StdoutCapture, _installProfileCustomFuncs,_removeProfileCustomFuncs,
     StdoutCapture, _installProfileCustomFuncs,_removeProfileCustomFuncs,

+ 1 - 1
direct/src/showbase/PythonUtil.py

@@ -63,7 +63,7 @@ from direct.directutil import Verify
 # Don't import libpandaexpressModules, which doesn't get built until
 # Don't import libpandaexpressModules, which doesn't get built until
 # genPyCode.
 # genPyCode.
 import direct.extensions_native.extension_native_helpers
 import direct.extensions_native.extension_native_helpers
-from libpandaexpress import ConfigVariableBool
+from panda3d.core import ConfigVariableBool
 
 
 ScalarTypes = (types.FloatType, types.IntType, types.LongType)
 ScalarTypes = (types.FloatType, types.IntType, types.LongType)
 
 

+ 1 - 1
direct/src/showbase/VFSImporter.py

@@ -1,4 +1,4 @@
-from libpandaexpress import Filename, VirtualFileSystem, VirtualFileMountSystem, OFileStream, copyStream
+from panda3d.core import Filename, VirtualFileSystem, VirtualFileMountSystem, OFileStream, copyStream
 import sys
 import sys
 import os
 import os
 import marshal
 import marshal