[ck2cti] Expand paths containing '~' and '~user'

This commit is contained in:
Ray Speth 2014-09-07 21:16:54 +00:00
parent 8e0335e9b1
commit 38b5434fc4

View file

@ -1807,6 +1807,14 @@ duplicate transport data) to be ignored.
def convertMech(self, inputFile, thermoFile=None,
transportFile=None, phaseName='gas',
outName=None, quiet=False, permissive=None):
inputFile = os.path.expanduser(inputFile)
if thermoFile:
thermoFile = os.path.expanduser(thermoFile)
if transportFile:
transportFile = os.path.expanduser(transportFile)
if outName:
outName = os.path.expanduser(outName)
if quiet:
logging.basicConfig(level=logging.ERROR)
else: