-
Notifications
You must be signed in to change notification settings - Fork 17
$SIMDEM_TEMP_DIR and SIMDEM_VERSION not set in SimDem2 #104
Comments
I've added --version flag in this commit: c364431
Does this meet the $SIMDEM_VERSION requirement, or did you still want the env variable injected? |
To be honest I can't for the life of me remember why there is an environment variable for VERSION, so I guess that means we can drop it. The TEMP_DIR is important though, many of the scripts already out there use it. Happy for this to simply be a default that can be overridden with the '-e' argument. I keep dreaming of a |
Regarding the directory location, it's easy to put into the config file (which is overridable); however, the key part is what is it relative to?
|
This is now implemented to use the value here: https://github.com/Azure/simdem/blob/simdem2/simdem/simdem.ini#L5 |
The variable name is defined as "temp_dir" rather than "SIMDEM_TEMP_DIR". Is there a reason for this? I'd much rather we stay backward compatible because:
|
"temp_dir" is what it's called inside the simdem.ini file it gets mapped to SIMDEM_TEMP_DIR inside the coe. I can change the name if you want me to, but I figured it would be useful to keep it consistent to *.ini settings. Here is where it's set to SIMDEM_TEMP_DIR: |
Ahhh.. OK. That's confusing, but it's only a documentation thing. |
In SimDem1 we provided default
SIMDEM_TEMP_DIR
environment variable, this is used as a workspace when SimDem or a SimDem script needs to write some temporary files. By default it is set to[.simdem/tmp](https://github.com/Azure/simdem/blob/6dbce90c0bfbd980e35cdc3c92edd28e1e612ffe/config.py#L2)
Similarly we set
SIMDEM_VERSION
for easy validation of the version against expected versions during testing. This could be replaced by a--version
switch in the CLI.SimDem2 does not provide either of these and so the test scripts for SimDem1 fail:
The text was updated successfully, but these errors were encountered: