Changeset 1083 for framspy/frams-test.py
- Timestamp:
- 02/18/21 18:58:55 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/frams-test.py
r1081 r1083 2 2 import frams 3 3 4 frams path = sys.argv[1] # set to the directory where Framsticks binaries and libraries exist5 frams.init(frams path, "-Ddata") # "-D"+os.path.join(framspath,"data")) # not possible (maybe python windows issue) because of the need for os.chdir(). So we assume "data" is where the dll/so is4 frams_path = sys.argv[1] # set to the directory where Framsticks binaries and libraries exist 5 frams.init(frams_path, sys.argv[2] if len(sys.argv) > 2 else None, "-Ddata") # "-D"+os.path.join(framspath,"data")) # not possible (maybe python windows issue) because of the need for os.chdir(). So we assume "data" is where the dll/so is 6 6 7 7 print('Available objects:', dir(frams))
Note: See TracChangeset
for help on using the changeset viewer.