blob: dd760af827379f3c064b395302e5c3a3681fefed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import os
import sys
try:
awlsim_useCython = bool(int(os.getenv("AWLSIMCYTHON", "0")))
except ValueError:
awlsim_useCython = False
if awlsim_useCython:
try:
from awlsim_cython.all import *
except ImportError as e:
sys.stderr.write("WARNING: Failed to import awlsim CYTHON core: "
"%s\n" % str(e))
sys.stderr.write("--> Falling back to standard core...\n")
sys.stderr.flush()
awlsim_useCython = False
if not awlsim_useCython:
from awlsim.all import *
|