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.

Environment

None

GitHub Work

None

blocks

relates to

Activity

Show:

Olga Faber 16 November 2015 at 09:19

ok

Norman Fomferra 21 July 2015 at 04:31

Using NB command line:

> bin/snap --nogui --nosplash --python <python-exe> [<target-dir>]

Norman Fomferra 9 July 2015 at 11:02

Implemented, but actually no manual written for that so it is still an invisible feature

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Original estimate

Time tracking

No time logged4h remaining

Due date

Priority

Created 21 April 2015 at 16:26
Updated 10 December 2015 at 10:58
Resolved 21 July 2015 at 04:31