Hello,
maybe i have found some answers.
Concerning python binding :
i guess i must place zwoasi module in my working directory. In that case, when i run my program, python will look for __init__.py which is in zwoasi directory.
Is that correct ?
Concerning the SDK library, i should place the Armv7 files in a directory which is listed in Python path (for example /usr/lib/Python3).
Is that correct ?
In the python binding example (zwoasi_demo.py), there is a part concerning zwo library initialisation :
env_filename = os.getenv('ZWO_ASI_LIB')
parser = argparse.ArgumentParser(description='Process and save images from a camera')
parser.add_argument('filename',
nargs='?',
help='SDK library filename')
args = parser.parse_args()
# Initialize zwoasi with the name of the SDK library
if args.filename:
asi.init(args.filename)
elif env_filename:
asi.init(env_filename)
else:
print('The filename of the SDK library is required (or set ZWO_ASI_LIB environment variable with the filename)')
sys.exit(1)
Concerning this line : env_filename = os.getenv('ZWO_ASI_LIB')
I suppose it is used to point to the sdk library. I don't understand how a link can be created beteen ZWO_ASI_LIB and the library.
How can i make the link with the library file ?
Alain