From eda0c6c5384b2aacf72aa6fbfa6aa68ca35ad311 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Fri, 12 Jan 2024 18:24:40 +0100 Subject: [PATCH] Adjust mccode_config.json for NeXus location --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f86ccd7b..8c6e2873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,8 +57,10 @@ RUN cd /opt/install && \ # Configure McStasScript for use with installed McStas export MCSTAS_BINDIR=`mcrun --showcfg=bindir` && \ export MCSTAS_COMPDIR=`mcrun --showcfg=resourcedir` && \ + export MCSTAS_TOOLDIR=`mcrun --showcfg=toolbar` && \ sed -i 's+MCSTAS_BINDIR+'"${MCSTAS_BINDIR}"'+g' McStasScript/configuration.yaml && \ sed -i 's+MCSTAS_COMPDIR+'"${MCSTAS_COMPDIR}"'+g' McStasScript/configuration.yaml && \ + sed -i 's+NeXus+NeXus\ -L/opt/conda/lib\ -I/opt/conda/include/nexus+g' ${MCSTAS_TOOLDIR}/Python/mccodelib/mccode_config.json && \ find /opt/conda/lib -type d -name mcstasscript -exec cp McStasScript/configuration.yaml \{\} \; && \ # Run mcdoc, installed via conda /opt/conda/bin/mcdoc -i