From 1b30b186f44e7e4d082bc494924fe91d14b70ad7 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 18 Jul 2016 06:17:22 +0200 Subject: [PATCH] rootRelation keyword was still used --- processing/post/mentat_colorMap.py | 2 +- processing/post/postResults.py | 2 +- processing/pre/mentat_pbcOnBoxMesh.py | 2 +- processing/pre/mentat_spectralBox.py | 2 +- processing/pre/patchFromReconstructedBoundaries.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/processing/post/mentat_colorMap.py b/processing/post/mentat_colorMap.py index 79ea35a39..b72f48afe 100755 --- a/processing/post/mentat_colorMap.py +++ b/processing/post/mentat_colorMap.py @@ -126,7 +126,7 @@ elif options.palette: for theColor in theMap.export(format='list',steps=options.colorcount): print '\t'.join(map(lambda x: str(int(255*x)),theColor)) else: # connect to Mentat and change colorMap - sys.path.append(damask.solver.Marc().libraryPath('../../')) + sys.path.append(damask.solver.Marc().libraryPath()) try: import py_mentat print 'waiting to connect...' diff --git a/processing/post/postResults.py b/processing/post/postResults.py index 28a2b40ac..df32398f7 100755 --- a/processing/post/postResults.py +++ b/processing/post/postResults.py @@ -765,7 +765,7 @@ if options.filetype not in ['marc','spectral']: parser.error('file type "%s" not supported...'%options.filetype) if options.filetype == 'marc': - sys.path.append(damask.solver.Marc().libraryPath('../../')) + sys.path.append(damask.solver.Marc().libraryPath()) try: from py_post import post_open diff --git a/processing/pre/mentat_pbcOnBoxMesh.py b/processing/pre/mentat_pbcOnBoxMesh.py index d355639e2..b35d9ab62 100755 --- a/processing/pre/mentat_pbcOnBoxMesh.py +++ b/processing/pre/mentat_pbcOnBoxMesh.py @@ -9,7 +9,7 @@ import damask scriptName = os.path.splitext(os.path.basename(__file__))[0] scriptID = ' '.join([scriptName,damask.version]) -sys.path.append(damask.solver.Marc().libraryPath('../../')) +sys.path.append(damask.solver.Marc().libraryPath()) active=[True,True,True] # directions on which to add PBC def outMentat(cmd,locals): diff --git a/processing/pre/mentat_spectralBox.py b/processing/pre/mentat_spectralBox.py index 770db1279..6ff6e51d7 100755 --- a/processing/pre/mentat_spectralBox.py +++ b/processing/pre/mentat_spectralBox.py @@ -8,7 +8,7 @@ import damask scriptName = os.path.splitext(os.path.basename(__file__))[0] scriptID = ' '.join([scriptName,damask.version]) -sys.path.append(damask.solver.Marc().libraryPath('../../')) +sys.path.append(damask.solver.Marc().libraryPath()) #------------------------------------------------------------------------------------------------- def outMentat(cmd,locals): diff --git a/processing/pre/patchFromReconstructedBoundaries.py b/processing/pre/patchFromReconstructedBoundaries.py index f0c68b5f7..9167c7398 100755 --- a/processing/pre/patchFromReconstructedBoundaries.py +++ b/processing/pre/patchFromReconstructedBoundaries.py @@ -15,7 +15,7 @@ try: # check for Python Image Lib except: ImageCapability = False -sys.path.append(damask.solver.Marc().libraryPath('../../')) +sys.path.append(damask.solver.Marc().libraryPath()) try: # check for MSC.Mentat Python interface import py_mentat