Commit a3cab724 authored by Michael Büsch's avatar Michael Büsch

loader/cython: Improve import error message

Signed-off-by: Michael Büsch's avatarMichael Buesch <>
parent 9fc86605
......@@ -36,7 +36,7 @@ def shouldUseCython(modname=None):
def cythonImportError(modname, message):
global __useCython
import sys
import sys, os
def perr(msg):
if sys.stderr:
......@@ -49,7 +49,9 @@ def cythonImportError(modname, message):
(modname, message))
__useCython = __USE_CYTHON_NO
elif __useCython in (__USE_CYTHON_FORCE, __USE_CYTHON_VERBOSE):
perr("ERROR: Failed to import awlsim CYTHON module '%s': %s\n"
perr("\n\nERROR: Failed to import awlsim CYTHON module '%s': %s\n\n"
"Python interpreter: %s\n"
"Aborting.\n" %\
(modname, message))
(modname, message, sys.executable, os.environ.get("PYTHONPATH", "")))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment