示例#1
0
def importModule(moduleName):
	"""Import a module with the name string 'moduleName'.
	Returns the module object.
	May raise importError."""

	import awlsim.cython_helper as cython_helper
	import importlib

	if cython_helper.shouldUseCython(moduleName):
		moduleName = cython_helper.cythonModuleName(moduleName)
	return importlib.import_module(moduleName)
示例#2
0
def importModule(moduleName):
	"""Import a module with the name string 'moduleName'.
	Returns the module object.
	May raise importError."""

	import awlsim.cython_helper as cython_helper
	try:
		import importlib
	except ImportError as e:
		importlib = None

	if cython_helper.shouldUseCython(moduleName):
		moduleName = cython_helper.cythonModuleName(moduleName)
	if importlib:
		mod = importlib.import_module(moduleName)
	else:
		mod = __import__(moduleName)

	return mod
示例#3
0
def importModule(moduleName):
    """Import a module with the name string 'moduleName'.
	Returns the module object.
	May raise importError."""

    import awlsim.cython_helper as cython_helper
    try:
        import importlib
    except ImportError as e:
        importlib = None

    if cython_helper.shouldUseCython(moduleName):
        moduleName = cython_helper.cythonModuleName(moduleName)
    if importlib:
        mod = importlib.import_module(moduleName)
    else:
        mod = __import__(moduleName)

    return mod
示例#4
0
from __future__ import division, absolute_import, print_function, unicode_literals

import awlsim.cython_helper as __cython

if __cython.shouldUseCython():
	try:
		from awlsim_cython.core.all import *
	except ImportError as e:
		__cython.cythonImportError("core", str(e))
if not __cython.shouldUseCython():
	from awlsim.core.all import *
示例#5
0
from __future__ import division, absolute_import, print_function, unicode_literals

import awlsim.cython_helper as __cython

if __cython.shouldUseCython():						#@nocy
#if True:								#@cy
	try:
		from awlsim_cython.coreclient.all_modules import *	#<no-cython-patch
	except ImportError as e:
		__cython.cythonImportError("coreclient", str(e))
if not __cython.shouldUseCython():					#@nocy
	from awlsim.coreclient.all_modules import *			#@nocy
示例#6
0
from __future__ import division, absolute_import, print_function, unicode_literals

import awlsim.cython_helper as __cython

if __cython.shouldUseCython():
    try:
        from awlsim_cython.core.all import *
    except ImportError as e:
        __cython.cythonImportError("core", str(e))
if not __cython.shouldUseCython():
    from awlsim.core.all import *
示例#7
0
from __future__ import division, absolute_import, print_function, unicode_literals

import awlsim.cython_helper as __cython

if __cython.shouldUseCython(__name__):					#@nocy
#if True:								#@cy
	try:
		from awlsim_cython.library.all_modules import *		#<no-cython-patch
	except ImportError as e:
		__cython.cythonImportError(__name__, str(e))
if not __cython.shouldUseCython(__name__):				#@nocy
	from awlsim.library.all_modules import *			#@nocy
示例#8
0
from __future__ import division, absolute_import, print_function, unicode_literals

import awlsim.cython_helper as __cython

if __cython.shouldUseCython(__name__):					#@nocy
#if True:								#@cy
	try:
		from awlsim_cython.library.iec.all_modules import *	#<no-cython-patch
	except ImportError as e:
		__cython.cythonImportError(__name__, str(e))
if not __cython.shouldUseCython(__name__):				#@nocy
	from awlsim.library.iec.all_modules import *			#@nocy