From 2830d7ccd799e3c4cdc7b8714047828febfb8548 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Wed, 1 Jul 2026 15:33:24 +0200 Subject: [PATCH] Add mcplot-html batch wrapper --- cmake/Modules/InstallMCCODE.cmake | 2 +- cmake/support/run-scripts/plot-html.bat.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 cmake/support/run-scripts/plot-html.bat.in diff --git a/cmake/Modules/InstallMCCODE.cmake b/cmake/Modules/InstallMCCODE.cmake index 8bb61020a..74241ce8c 100644 --- a/cmake/Modules/InstallMCCODE.cmake +++ b/cmake/Modules/InstallMCCODE.cmake @@ -415,7 +415,7 @@ macro(installMCCODE) install(PROGRAMS ${WORK}/support/${FLAVOR}-labenv.bat DESTINATION "${DEST_BINDIR}") # Python/Perl related batches special handling - foreach (name run.bat doc.bat test.bat viewtest.bat resplot.bat plot.bat display.bat gui.bat guistart.bat plot-pyqtgraph.bat plot-matplotlib.bat plot-matlab.bat display-webgl.bat display-webgl-classic.bat display-pyqtgraph.bat display-cad.bat display-matplotlib.bat display-mantid.bat display-matlab.bat) + foreach (name run.bat doc.bat test.bat viewtest.bat resplot.bat plot.bat display.bat gui.bat guistart.bat plot-pyqtgraph.bat plot-matplotlib.bat plot-matlab.bat plot-html.bat display-webgl.bat display-webgl-classic.bat display-pyqtgraph.bat display-cad.bat display-matplotlib.bat display-mantid.bat display-matlab.bat) configure_file( cmake/support/run-scripts/${name}.in work/support/${MCCODE_PREFIX}${name} diff --git a/cmake/support/run-scripts/plot-html.bat.in b/cmake/support/run-scripts/plot-html.bat.in new file mode 100644 index 000000000..fe654049b --- /dev/null +++ b/cmake/support/run-scripts/plot-html.bat.in @@ -0,0 +1,4 @@ +@REM Isn't windows a lovely place??? +@set BINDIR=%~dp0 +@python -u %BINDIR%\@MCCODE_RELPATH_BINDIR2TOOLDIR@\Python\@MCCODE_PREFIX@plot\html\@MCCODE_PREFIX@plot.py %* +