Skip to content

Polsarpro needs to be started from its installation directory #2

@fpl

Description

@fpl

Typically users need to cd /opt/polsarsarpro and run wish from there, else the main script will fail.

$ wish /opt/polsarpro/PolSARpro_v6.0.3_Biomass_Edition.tcl
Error in startup script: can't read "Version": no such variable
    while executing
"append PSPEnv $Version"
    (procedure "InitPolSARproEnv" line 64)
    invoked from within
"InitPolSARproEnv"
    (procedure "init" line 623)
    invoked from within
"init $argc $argv"
    (file "/opt/polsarpro/PolSARpro_v6.0.3_Biomass_Edition.tcl" line 14723)

This Is due to the use of pwd and . to build a lot of its internal file paths. A standard approach would be setting an environment variable - such as $PSP_HOME - and using it within the Tk scripts. Unfortunately this is the pattern used within 298 different Tcl scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions