diff --git a/FF_HEDM/v7/ff_MIDAS.py b/FF_HEDM/v7/ff_MIDAS.py index d74165ca..aaf77eb3 100755 --- a/FF_HEDM/v7/ff_MIDAS.py +++ b/FF_HEDM/v7/ff_MIDAS.py @@ -182,6 +182,8 @@ def error(self, message): env['LD_LIBRARY_PATH'] = f'{midas_path}/BLOSC/lib64:{midas_path}/FFTW/lib:{midas_path}/HDF5/lib:{midas_path}/LIBTIFF/lib:{midas_path}/LIBZIP/lib64:{midas_path}/NLOPT/lib:{midas_path}/ZLIB/lib:{libpth}' if len(resultDir) == 0 or resultDir=='.': resultDir = os.getcwd() +if resultDir[0] == '~': + resultDir = os.path.expanduser(resultDir) if resultDir[0] != '/': resultDir = os.getcwd() + '/' + resultDir logDir = resultDir + '/output'