diff --git a/longbow/apps/__init__.py b/longbow/apps/__init__.py
index 662c5a6..7ad59fb 100644
--- a/longbow/apps/__init__.py
+++ b/longbow/apps/__init__.py
@@ -45,6 +45,7 @@ MODULES = pkgutil.iter_modules(path=[PATH])
 
 EXECLIST = []
 PLUGINEXECS = {}
+MODNAMEOVERRIDES = {}
 
 # Loop through all the modules in the plugin.
 for loader, modulename, ispkg in MODULES:
@@ -61,3 +62,12 @@ for loader, modulename, ispkg in MODULES:
 
             # Compile a dictionary associating executable with plugins.
             PLUGINEXECS[executable] = modulename
+
+        # Is the module named differently on HPC than the software is called.
+        try:
+
+            MODNAMEOVERRIDES[modulename] = getattr(mod, "MODULENAME").items()
+
+        except AttributeError:
+
+            pass
diff --git a/longbow/configuration.py b/longbow/configuration.py
index ac8672a..248d4c1 100644
--- a/longbow/configuration.py
+++ b/longbow/configuration.py
@@ -429,6 +429,7 @@ def _processconfigsfinalinit(jobs):
     """Perform some last bits of initialisation."""
     # Initialisation.
     modules = getattr(apps, "PLUGINEXECS")
+    modoverrides = getattr(apps, "MODNAMEOVERRIDES")
     modules[""] = ""
 
     for job in [a for a in jobs if "lbowconf" not in a]:
@@ -452,6 +453,10 @@ def _processconfigsfinalinit(jobs):
 
                 jobs[job]["modules"] = modules[jobs[job]["executable"]]
 
+                if jobs[job]["modules"] in modoverrides:
+
+                    jobs[job]["modules"] = modoverrides[jobs[job]["modules"]]
+
             except KeyError:
 
                 pass

module override parameter has gone missing
In older versions of Longbow there used to be a MODULEOVERRIDE parameter that could be optionally provided in application plugin files to alter the default naming of modules from the name of the plugin file to something else. This could be used by users to set the module name if something peculiar had been used.

This should be restated along with tests, as along the line this functionality has disappeared.

This will need adding to dev docs as well.
diff --git a/tests/unit/configuration/test_processconfigsfinalinit.py b/tests/unit/configuration/test_processconfigsfinalinit.py
index 691d085..d86fdfb 100644
--- a/tests/unit/configuration/test_processconfigsfinalinit.py
+++ b/tests/unit/configuration/test_processconfigsfinalinit.py
@@ -33,11 +33,33 @@
 """
 This testing module contains the tests for the configuration module methods.
 """
+try:
+
+    from unittest import mock
+
+except ImportError:
+
+    import mock
 
 import os
 from longbow.configuration import _processconfigsfinalinit
 
 
+def pluginsdata(_, data):
+
+    """
+    mocked getattr call for external data.
+    """
+
+    if data == "PLUGINEXECS":
+
+        return {"testexec": "testmodule"}
+
+    elif data == "MODNAMEOVERRIDES":
+
+        return {"testmodule": "fictionmodule"}
+
+
 def test_processconfigsfinalinit1():
 
     """
@@ -102,3 +124,32 @@ def test_processconfigsfinalinit2():
     assert jobs["test"]["destdir"] != ""
     assert jobs["test"]["remoteworkdir"] == "/work/dir"
     assert jobs["test"]["modules"] == ""
+
+
+@mock.patch('longbow.configuration.getattr')
+def test_processconfigsfinalinit3(attr):
+
+    """
+    Test the modulename overrides
+    """
+
+    jobs = {
+        "jobone": {
+            "modules": "",
+            "localworkdir": "/somepath/to/dir",
+            "executableargs": "arg1 arg2 arg3",
+            "executable": "testexec",
+            "remoteworkdir": "/work/dir"
+        }
+    }
+
+    attr.side_effect = pluginsdata
+
+    _processconfigsfinalinit(jobs)
+
+    assert jobs["jobone"]["localworkdir"] == "/somepath/to/dir"
+    assert jobs["jobone"]["executableargs"] == ["arg1", "arg2", "arg3"]
+    assert jobs["jobone"]["executable"] == "testexec"
+    assert jobs["jobone"]["destdir"] != ""
+    assert jobs["jobone"]["remoteworkdir"] == "/work/dir"
+    assert jobs["jobone"]["modules"] == "fictionmodule"

pip install -e .
parse_log_pytest
requirements.txt
pytest coverage
3.7
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
-e git+https://github.com/HECBioSim/Longbow.git@168f629c04128751902eed35ca04dac9fbefc51f#egg=Longbow
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.15.0

name: Longbow
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - packaging==24.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/Longbow

tests/unit/configuration/test_processconfigsfinalinit.py::test_processconfigsfinalinit3
tests/unit/configuration/test_processconfigsfinalinit.py::test_processconfigsfinalinit1 tests/unit/configuration/test_processconfigsfinalinit.py::test_processconfigsfinalinit2
longbow/configuration.py longbow/apps/__init__.py
longbow/configuration.py longbow/apps/__init__.py