Provide command-line option to configure SNAP-Python API
Description
Thanks to NetBeans, a SNAP installation already has native executables to launch SNAP applications. The launcher should have special options to configure the Python to be used with SNAP. This is urgently required when you need to call SNAP API from Python for the first time. (When calling into Python from Java, the installation/configuration is performed silently using system property "snap.pythonExecutable"). For example (Windows):
> snap --python "C:\Python34\python.exe" Done. The SNAP-Python interface is located in 'C:\Users\Norman\AppData\Roaming\snap\module-data\snap-python\snappy' When using SNAP from Python, either do: sys.path.append('C:\Users\Norman\AppData\Roaming\snap\module-data\snap-python') or copy the 'snappy' directory into your Python's 'site-packages' directory.
Thanks to NetBeans, a SNAP installation already has native executables to launch SNAP applications. The launcher should have special options to configure the Python to be used with SNAP. This is urgently required when you need to call SNAP API from Python for the first time. (When calling into Python from Java, the installation/configuration is performed silently using system property "snap.pythonExecutable"). For example (Windows):
> snap --python "C:\Python34\python.exe"
Done. The SNAP-Python interface is located in 'C:\Users\Norman\AppData\Roaming\snap\module-data\snap-python\snappy'
When using SNAP from Python, either do: sys.path.append('C:\Users\Norman\AppData\Roaming\snap\module-data\snap-python')
or copy the 'snappy' directory into your Python's 'site-packages' directory.