|
|
|
|
Re: Edit environment variables and start project build automatically with Python [message #1828270 is a reply to message #1828267] |
Fri, 05 June 2020 10:40 |
Ed Merks Messages: 33262 Registered: July 2009 |
Senior Member |
|
|
Note that when you edit the variable, you can enter a value or you can use the "Variables" button. There are lots of variables you can use, but most significantly, if you go to Window -> Preferences -> Run/Debug -> String Substitutions you can define variables here, i.e., a mapping from name, e.g., my.example.variable , to value, e.g., C:\Something-really-important. Then in the other dialog where you edit the environment variable, you can find "my.example.value" in the list of variable choices and can use ${my.example.value} as the value. This then decouples the information stored in the project from the configurable value it should have. (And, for what it's worth, Oomph lets you define String Substitution Tasks for setting up such values automatically.)
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03868 seconds