How to include .js file from enviroment variable
I try to switch from dev mode to live mode by changing a system enviroment variable with the root path of the scripts. Both for the extension jsx file and local PS scripts I use the...
#include (anotherJsFile.js);
syntax to include js files on the network, this works as expected.
But when I want to use a system enviroment variable to create the script path, and insert it into the include, it's undefined. I think the PS JS engine first executes the includes, before any variable is set.
So I don't see how I could load a script based on a path where any logic is requered first.
Any ideas how I can first build the path, and then include it?
