Unanswered
Hi, I Am Trying To Setup The Path To Trains.Conf File Programatically And Having Trouble..
We Tried Using Os.Environ['Trains_Config_File'] = Path, And Also Other Variations Of Overriding The Trains.Backend_Config.Defs But Nothing Seem To Work.. When Creat
I was trying to do exactly as you mentioned setting the environment variable
before
any trains import but it didn't work
In your entry point script, (even if you do not call trains/ Task.init
) add:import os os.environ['TRAINS_CONFIG_FILE']='~/my_new_trains.conf' import trains
Then when you actually import trains, everything is already set and it will not read the configuration again.
Make sense ?
171 Views
0
Answers
3 years ago
one year ago