from xml.parsers.expat import ExpatError
import sys
from os import environ
import string
import traceback

python_module_path=os.environ["PYTHON_MODULE_PATH"]
appended=sys.path.count(python_module_path)
if not appended:
    sys.path.append(python_module_path)    

import CompuCell
CompuCell.initializePlugins()
# simthread = None
# sim = None


# sys.path.append(environ["PYTHON_MODULE_PATH"])



# # # # # # import SystemUtils
# # # # # # SystemUtils.setSwigPaths()
# # # # # # SystemUtils.initializeSystemResources()

# # # # # # # # # simulator=CompuCell.Simulator()
# # # # # # import CompuCellSetup