Changeset 1083 for framspy/frams-test.py


Ignore:
Timestamp:
02/18/21 18:58:55 (4 years ago)
Author:
Maciej Komosinski
Message:

Allowed to override the default name of frams-objects.dll/so

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/frams-test.py

    r1081 r1083  
    22import frams
    33
    4 framspath = sys.argv[1] # set to the directory where Framsticks binaries and libraries exist
    5 frams.init(framspath, "-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
     4frams_path = sys.argv[1] # set to the directory where Framsticks binaries and libraries exist
     5frams.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
    66
    77print('Available objects:', dir(frams))
Note: See TracChangeset for help on using the changeset viewer.