resolve circular import

This commit is contained in:
David Rose 2003-11-12 03:49:59 +00:00
parent 5b82d853e5
commit 1b729fb229
3 changed files with 9 additions and 5 deletions

View File

@ -0,0 +1,8 @@
"""instantiate global InputState object"""
# This file had to be separated from MessengerGlobal to resolve a
# circular include dependency with DirectObject.
import InputState
inputState = InputState.InputState()

View File

@ -1,10 +1,5 @@
"""instantiate global Messenger object"""
import Messenger
import InputState
messenger = Messenger.Messenger()
# inputState is an optional add-on for the messenger, and
# that is why it is created here (See Also: InputState.py):
inputState = InputState.InputState()

View File

@ -13,6 +13,7 @@ from PythonUtil import *
from ParticleManagerGlobal import *
from PhysicsManagerGlobal import *
from IntervalManager import ivalMgr
from InputStateGlobal import inputState
import Task
import EventManager