- Timestamp:
- 03/05/21 19:34:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/frams.py
r1096 r1100 302 302 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())) 303 303 raise 304 os.chdir(original_dir) # restore c wd after loading so framsticks seethe expected directory304 os.chdir(original_dir) # restore current working dir after loading the library so framsticks sees the expected directory 305 305 306 306 c_api.init.argtypes = [ctypes.c_int, ctypes.POINTER(ctypes.c_char_p)] … … 345 345 c_args = (ctypes.c_char_p * len(initargs))(*list(a.encode(ExtValue._encoding) for a in initargs)) 346 346 c_api.init(len(initargs), c_args) 347 os.chdir(original_dir) # restore again, because framsticks changedir to 'data'347 os.chdir(original_dir) # restore current working dir again, because framsticks changes dir to 'data' 348 348 Root = ExtValue._rootObject() 349 349 for n in dir(Root):
Note: See TracChangeset
for help on using the changeset viewer.