test.py 411 B

123456789101112131415
  1. #Test module loadability
  2. #Imported in C++ as file_load_py_test and executed as a string
  3. #Loaded by BLpython3 as a simple way to test if Python works
  4. #Failure will not inhibit continued loading but likely indicates impending cataostrophic failure
  5. import inspect, sys, os, time, sqlite3, BLpython
  6. def ism(obj):
  7. return inspect.ismodule(obj)
  8. if ism(os) and ism(time) and ism(sqlite3) and ism(BLpython):
  9. pass