Skip to content

Commit

Permalink
Apply OSX > 10.8 fix to system test scripts
Browse files Browse the repository at this point in the history
Refs #10870
  • Loading branch information
martyngigg committed Feb 16, 2015
1 parent 7078890 commit dc21b4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Code/Mantid/Testing/SystemTests/scripts/mantidinstaller.py
Expand Up @@ -229,7 +229,9 @@ class DMGInstaller(MantidInstaller):
def __init__(self, package_dir, do_install):
MantidInstaller.__init__(self, package_dir, 'mantid-*.dmg', do_install)
self.mantidPlotPath = '/Applications/MantidPlot.app/Contents/MacOS/MantidPlot'
os.environ['DYLD_LIBRARY_PATH'] = '/Applications/MantidPlot.app/Contents/MacOS'
# only necessary on 10.8 build
if int(platform.release().split('.')[0]) < 13:
os.environ['DYLD_LIBRARY_PATH'] = '/Applications/MantidPlot.app/Contents/MacOS'

def do_install(self):
"""Mounts the dmg and copies the application into the right place.
Expand Down
3 changes: 2 additions & 1 deletion Code/Mantid/Testing/SystemTests/scripts/runSystemTests.py
Expand Up @@ -78,7 +78,8 @@
# not the dynamic library path variable name
if platform.system() == 'Windows':
path_var = "PATH"
elif platform.system() == 'Darwin':
# only necessary on 10.8 build
elif platform.system() == 'Darwin' and int(platform.release().split('.')[0]) < 13 :
path_var = "DYLD_LIBRARY_PATH"
else:
path_var = None
Expand Down

0 comments on commit dc21b4d

Please sign in to comment.