Skip to content
Snippets Groups Projects
Commit 759f9820 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Move default external data location to HOME

Refs #10870
parent 08a59253
No related branches found
No related tags found
No related merge requests found
...@@ -58,11 +58,11 @@ fi ...@@ -58,11 +58,11 @@ fi
############################################################################### ###############################################################################
# Set up the location for the local object store outside of the build and # Set up the location for the local object store outside of the build and
# source tree, which can be shared by multiple builds. # source tree, which can be shared by multiple builds.
# It defaults to the parent directory of the workspace but can be overridden # It defaults to a MantidExternalData directory within the HOME directory.
# by setting the MANTID_DATA_STORE environment variable. # It can be overridden by setting the MANTID_DATA_STORE environment variable.
############################################################################### ###############################################################################
if [ -z "$MANTID_DATA_STORE" ]; then if [ -z "$MANTID_DATA_STORE" ]; then
export MANTID_DATA_STORE=$(dirname $WORKSPACE) export MANTID_DATA_STORE=$HOME/MantidExternalData
fi fi
############################################################################### ###############################################################################
......
...@@ -22,11 +22,12 @@ set PATH=%WORKSPACE%\Code\Third_Party\lib\win64;%WORKSPACE%\Code\Third_Party\lib ...@@ -22,11 +22,12 @@ set PATH=%WORKSPACE%\Code\Third_Party\lib\win64;%WORKSPACE%\Code\Third_Party\lib
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Set up the location for local object store outside of the build and source :: Set up the location for local object store outside of the build and source
:: tree, which can be shared by multiple builds. :: tree, which can be shared by multiple builds.
:: It defaults to the parent directory of the workspace but can be overridden :: It defaults to a MantidExternalData directory within the USERPROFILE
:: by setting the MANTID_DATA_STORE environment variable. :: directory. It can be overridden by setting the MANTID_DATA_STORE environment
:: variable.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if NOT DEFINED MANTID_DATA_STORE ( if NOT DEFINED MANTID_DATA_STORE (
for %%F in ("%WORKSPACE%") do set MANTID_DATA_STORE=%%~dpF set MANTID_DATA_STORE=%USERPROFILE%\MantidExternalData
) )
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment