Suppose I have a server where many users run different experiments, possibly with different Trains Servers.
I know about the TRAINS_CONFIG_FILE
environment variable, but I wonder if this can be made more flexible in one of the following ways:
~/
)?Disclaimer: I'm a member of Allegro Trains team
os.environ['TRAINS_CONFIG_FILE']='~/repo/trains.conf'
from trains import Task
os.environ['TRAINS_CONFIG_FILE']='trains.conf'
the trains.conf file will be loaded from the running directory at the time the import happens (which usually is the folder where your script is executed from). This means you can have it as part of the repository, and always set the TRAINS_CONFIG_FILE
to point to it.A few notes: