direct: libpandaexpress -> panda3d.core
This commit is contained in:
parent
9fc2e6829b
commit
b7ddeacc8b
|
|
@ -61,10 +61,8 @@ class DirectNotify:
|
|||
"""
|
||||
|
||||
# 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)
|
||||
cvar = ConfigVariableString(dconfigParam, "")
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ for the programmer/user
|
|||
"""
|
||||
from LoggerGlobal import defaultLogger
|
||||
from direct.showbase import PythonUtil
|
||||
from libpandaexpress import ConfigVariableBool
|
||||
from panda3d.core import ConfigVariableBool
|
||||
import time
|
||||
import types
|
||||
import sys
|
||||
|
|
@ -18,7 +18,7 @@ class Notifier:
|
|||
# with the C++ notify system.
|
||||
streamWriter = None
|
||||
if ConfigVariableBool('notify-integrate', True):
|
||||
from libpandaexpress import StreamWriter, Notify
|
||||
from panda3d.core import StreamWriter, Notify
|
||||
streamWriter = StreamWriter(Notify.out(), False)
|
||||
|
||||
showTime = ConfigVariableBool('notify-timestamp', False)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from PythonUtil import *
|
|||
from direct.directnotify import DirectNotifyGlobal
|
||||
import types
|
||||
|
||||
from libpandaexpress import ConfigVariableBool
|
||||
from panda3d.core import ConfigVariableBool
|
||||
|
||||
# If using the Toontown ActiveX launcher, this must be set true.
|
||||
# Also, Panda must be compiled with SIMPLE_THREADS or no HAVE_THREADS
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from pandac.libpandaexpressModules import TrueClock
|
||||
from panda3d.core import TrueClock
|
||||
from direct.directnotify.DirectNotifyGlobal import directNotify
|
||||
from direct.showbase.PythonUtil import (
|
||||
StdoutCapture, _installProfileCustomFuncs,_removeProfileCustomFuncs,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ from direct.directutil import Verify
|
|||
# Don't import libpandaexpressModules, which doesn't get built until
|
||||
# genPyCode.
|
||||
import direct.extensions_native.extension_native_helpers
|
||||
from libpandaexpress import ConfigVariableBool
|
||||
from panda3d.core import ConfigVariableBool
|
||||
|
||||
ScalarTypes = (types.FloatType, types.IntType, types.LongType)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from libpandaexpress import Filename, VirtualFileSystem, VirtualFileMountSystem, OFileStream, copyStream
|
||||
from panda3d.core import Filename, VirtualFileSystem, VirtualFileMountSystem, OFileStream, copyStream
|
||||
import sys
|
||||
import os
|
||||
import marshal
|
||||
|
|
|
|||
Loading…
Reference in New Issue