Author Topic: Any way to query OS Environment Variables from Plugin?  (Read 359 times)

The goal is to read the path in an environment variable and modify the paths of exported maps so if a user accidentally exports to the wrong folder, it will correct the path then export to the correct folder.

Is it possible to read environment variables from a plugin?

With our current Javascript implementation that's not possible.
The only solution is to call an external script (batch or python for example) that query the information you are looking for.
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.