add check for modules import

This commit is contained in:
Driss Lahlou
2016-12-09 18:39:10 +01:00
parent bb57496849
commit 770f2d2846

View File

@@ -81,4 +81,12 @@ if __name__ == '__main__':
logging.error(wrong_module(ortools_module_file, "ortools"))
raise SystemExit
# Check if python can load the libraries' modules
# this is useful when the library architecture is not compatbile with the python executable,
# or when the library's dependencies are not available or not compatible.
from ortools.constraint_solver import _pywrapcp
from ortools.linear_solver import _pywraplp
from ortools.algorithms import _pywrapknapsack_solver
from ortools.graph import _pywrapgraph