mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Split Localizer and SpeedChat between OTP and Toontown.
This commit is contained in:
parent
a666dcbac4
commit
7786bc0915
@ -15,7 +15,6 @@ import DirectNotifyGlobal
|
|||||||
import ClassicFSM
|
import ClassicFSM
|
||||||
#import DistributedInteractiveEntity
|
#import DistributedInteractiveEntity
|
||||||
import DelayDelete
|
import DelayDelete
|
||||||
import Localizer
|
|
||||||
|
|
||||||
# effects #
|
# effects #
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# This module redefines the builtin import function with one
|
# This module redefines the builtin import function with one
|
||||||
# that prints out every import it does in a hierarchical form
|
# that prints out every import it does in a hierarchical form
|
||||||
# Annoying and very noisy, but sometimes useful
|
# Annoying and very noisy, but sometimes useful
|
||||||
# import VerboseImport
|
#import VerboseImport
|
||||||
|
|
||||||
from PandaModules import *
|
from PandaModules import *
|
||||||
from DirectNotifyGlobal import *
|
from DirectNotifyGlobal import *
|
||||||
|
@ -11,13 +11,17 @@ indentLevel = 0
|
|||||||
# The new import function
|
# The new import function
|
||||||
def newimport(*args, **kw):
|
def newimport(*args, **kw):
|
||||||
global indentLevel
|
global indentLevel
|
||||||
|
fPrint = 0
|
||||||
name = args[0]
|
name = args[0]
|
||||||
# Only print the name if we have not imported this before
|
# Only print the name if we have not imported this before
|
||||||
if not sys.modules.has_key(name):
|
if not sys.modules.has_key(name):
|
||||||
print (" "*indentLevel + "import " + args[0])
|
print (" "*indentLevel + "import " + args[0])
|
||||||
|
fPrint = 1
|
||||||
indentLevel += 1
|
indentLevel += 1
|
||||||
result = oldimport(*args, **kw)
|
result = oldimport(*args, **kw)
|
||||||
indentLevel -= 1
|
indentLevel -= 1
|
||||||
|
if fPrint:
|
||||||
|
print (" "*indentLevel + "DONE: import " + args[0])
|
||||||
return result
|
return result
|
||||||
|
|
||||||
# Replace the builtin import with our new import
|
# Replace the builtin import with our new import
|
||||||
|
Loading…
x
Reference in New Issue
Block a user