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.
Typically users need to
cd /opt/polsarsarproand run wish from there, else the main script will fail.This Is due to the use of
pwdand.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.