Environment Variables

I am trying to set an environment variable (TargetDebug) in one of my build scripts and then query it in my web app after launch. In my IDE script I perform the following:

DoShellCommand(“export DB_PATH=”“valid_path_to_file”"")

After I execute this shell command and then subsequently call print EnvironmentVariable(“DB_PATH”) it comes back empty.

Anyone have any experience with this? I’m running on MacOS X.

The list of environment variables is not updated for your app if the child shell has it.

You may be able to see it with other command in same shell.

Or you may run bash or other shell with a command to set variable and than use it within one line.