| 17 | |
| 18 | Dimitar's comment |
| 19 | |
| 20 | |
| 21 | {{{ |
| 22 | How about modifying only the wcst_import.sh script to do |
| 23 | |
| 24 | export PETASCOPE_PROPERTIES_PATH="@CONF_DIR@/petascope.properties" |
| 25 | and here we try reading the environment variable? If the env variable is not defined (someone executes wcst_import.py directly), we try some standard locations: |
| 26 | |
| 27 | $RMANHOME/etc/petascope.properties |
| 28 | /opt/rasdaman/etc/petascope.properties |
| 29 | /etc/rasdaman/petascope.properties |
| 30 | If none work, we throw an error: Could not locate the petascope.properties file, please export the environment variable PETASCOPE_PROPERTIES_PATH before executing this script. |
| 31 | }}} |
| 32 | |
| 33 | |