Changeset 1141
- Timestamp:
- 05/17/21 15:39:43 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/frams.py
r1123 r1141 44 44 self._initFromNull() 45 45 else: 46 raise ArgumentError("Can't make ExtValue from '" + str(arg) + "'")46 raise ctypes.ArgumentError("Can't make ExtValue from '%s' (%s)" % (str(arg), type(arg))) 47 47 48 48 … … 300 300 lib_name = './' + lib_name # currently we always have lib_path (even if it is incorrect) but hypothetically it could work with lib_path==None and load .so from some default system path without './' 301 301 try: 302 c_api = ctypes.CDLL(lib_name) 302 c_api = ctypes.CDLL(lib_name) # should be a separate instance and no globals if we want multiple threads to use this module (todo?) 303 303 except OSError as e: 304 304 print("*** Could not find or open '%s' from '%s'.\n*** Did you provide proper arguments and is this file readable?\n" % (lib_name, os.getcwd())) … … 355 355 attr = attr._value() 356 356 setattr(sys.modules[__name__], n, attr) 357 357 358 358 print('Using Framsticks version: ' + str(Simulator.version_string)) 359 359 print('Home (writable) dir : ' + home_dir)
Note: See TracChangeset
for help on using the changeset viewer.