"ERROR: Running awlsim-gui on the PyPy or Jython interpreter is not supported. " "Please use Python 3.") sys.exit(1) from awlsim_loader.coreclient import * import awlsim_loader.cython_helper as cython_helper from awlsim.common.monotonic import monotonic_time #+cimport from awlsim.common.datatypehelpers import * #+cimport from awlsim.common.profiler import * from awlsim.core.datatypes import AwlDataType from awlsim.core.symbolparser import SymbolTable, Symbol, SymTabParser import traceback import xml.sax.saxutils as saxutils if cython_helper.shouldUseCython(): print("*** Using accelerated CYTHON core " "(AWLSIM_CYTHON environment variable is set)") from awlsim.gui.qt_bindings import * AWLSIM_HOME_DOMAIN = "awlsim.de" AWLSIM_HOME_URL = "https://" + AWLSIM_HOME_DOMAIN # Convert an integer to a dual-string def intToDualString(value, bitWidth): string = [] for bitnr in range(bitWidth - 1, -1, -1): string.append('1' if ((value >> bitnr) & 1) else '0') if bitnr and bitnr % 4 == 0:
from __future__ import division, absolute_import, print_function, unicode_literals import awlsim_loader.coverage_helper import awlsim_loader.cython_helper as __cython __importmod = "awlsim.awlcompiler" if __cython.shouldUseCython(__importmod): #@nocy #if True: #@cy __importcymod = __cython.cythonModuleName(__importmod) try: exec("from %s import *" % __importcymod) except ImportError as e: __cython.cythonImportError(__importcymod, str(e)) if not __cython.shouldUseCython(__importmod): #@nocy exec("from %s import *" % __importmod) #@nocy
from awlsim.common.datatypehelpers import * #+cimport from awlsim.common.profiler import * from awlsim.core.datatypes import AwlDataType from awlsim.core.symbolparser import SymbolTable, Symbol, SymTabParser import sys import traceback import xml.sax.saxutils as saxutils if isPyPy or isJython: # PySide does not work on PyPy or Jython, yet. printError("Running awlsim-gui on the PyPy or Jython interpreter is not supported.") printError("Please use CPython 2.7 or CPython 3.x") sys.exit(1) if cython_helper.shouldUseCython(): print("*** Using accelerated CYTHON core " "(AWLSIM_CYTHON environment variable is set)") from awlsim.gui.qt_bindings import * AWLSIM_HOME_DOMAIN = "awlsim.de" AWLSIM_HOME_URL = "https://" + AWLSIM_HOME_DOMAIN # Convert an integer to a dual-string def intToDualString(value, bitWidth): string = [] for bitnr in range(bitWidth - 1, -1, -1): string.append('1' if ((value >> bitnr) & 1) else '0')
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # from __future__ import division, absolute_import, print_function, unicode_literals if __name__ == "__main__": import awlsim_loader.coverage_helper import awlsim_loader.cython_helper as __cython import sys __modname = "awlsim.coreserver.server" __mod = None if __cython.shouldUseCython(__modname): __cymodname = __cython.cythonModuleName(__modname) try: exec("import %s as __mod" % __cymodname) except ImportError as e: __cython.cythonImportError(__cymodname, str(e)) if not __cython.shouldUseCython(__modname): exec("import %s as __mod" % __modname) if __mod: sys.exit(__mod.AwlSimServer._execute()) sys.exit(1)
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # from __future__ import division, absolute_import, print_function, unicode_literals if __name__ == "__main__": import awlsim_loader.coverage_helper import awlsim_loader.cython_helper as __cython import sys __modname = "awlsim.coreserver.server" __mod = None if __cython.shouldUseCython(__modname): __cymodname = __cython.cythonModuleName(__modname) try: exec("import %s as __mod" % __cymodname) except ImportError as e: __cython.cythonImportError(__cymodname, str(e)) if not __cython.shouldUseCython(__modname): exec("import %s as __mod" % __modname) if __mod: sys.exit(__mod.AwlSimServer._execute()) sys.exit(1)