pylab_ml.common.file_io.replaceFilename
- replaceFilename(fileName)[source]
Replace environment variables in the given file name with their values.
eg. If the fileName is ‘$NETWORK/data.txt’ and the ‘NETWORK’ environment variable is set to ‘//samba/proot’, then this function will return ‘//samba/proot/data.txt’.
- Parameters:
fileName (str) – The file name in which to replace environment variables.
- Returns:
filename : The file name with environment variables replaced by their values.
- Return type:
str