fixed path "date_time_zonespec.csv" ?

Topics: 1. General
Jan 22 at 9:22 PM
Hallo,

Just upgraded from old SMASpot 2.0.6 to SBFspot 3.3.1.
Runs so far, when starting with full path "/usr/local/bin/sbfspot.3/SBFspot".
Find the "SBFspot.cfg" (and also the "date_time_zonespec.csv").
Now it created a link because /usr/bin/ is a standard search path for binaries.
ln -s /usr/local/bin/sbfspot.3/SBFspot /usr/bin/SBFspot
When now starting SBFspot with -cfg option I get following output:
pi@raspberrypi2:~ $ SBFspot -nosql -nocsv  -cfg/var/www/123solar/config/SBFspot_1.cfg -q
Unable to open 'date_time_zonespec.csv'
Same with fully bin-path
pi@raspberrypi2:~ $ /usr/local/bin/sbfspot.3/SBFspot -nosql -nocsv  -cfg/var/www/123solar/config/SBFspot_1.cfg -q
pi@raspberrypi2:~ $
For me this means the file "date_time_zonespec.csv" is always expected in calling directory.

If this is correct should be mentioned in some documentation.
On the other hand wouldn't it be better to be searched in the path of the *.cfg file?
Coordinator
Jan 23 at 10:36 AM
Never tried it this way...
It should look in the application directory, so this is probably a bug.
Coordinator
Jan 25 at 7:44 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.