Changeset 1087 for framspy/frams-test.py
- Timestamp:
- 02/19/21 03:14:41 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/frams-test.py
r1085 r1087 2 2 import frams 3 3 4 frams.init(*(sys.argv[1:])) #pass whatever args we have, init() is the right place to deal with different scenrios:4 frams.init(*(sys.argv[1:])) # pass whatever args we have, init() is the right place to deal with different scenarios: 5 5 # frams.init() - should try to figure out everything (and might fail) 6 # frams.init('path/to/frams') - load the library from the specified dir and configure framsticks path as "data" inside the dir 7 # frams.init('path/to/frams','-d/tmp/workdir/data') - as above, but set the working (writable) directory somewhere else 6 # frams.init('path/to/lib') - load the library from the specified directory and configure Framsticks path as "data" inside this directory 7 # frams.init('path/to/lib','-d/tmp/workdir/data') - as above, but set the working (writable) directory somewhere else (see also -D) 8 # frams.init('path/to/lib','-Lframs-objects-alt.dll') - use specified library location and non-default file name 8 9 9 10 print('Available objects:', dir(frams))
Note: See TracChangeset
for help on using the changeset viewer.