diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index e48badbb1e5e2e9f67249c1b70e42fe414e85edb..566073787a7f4275ec0f8ac69aa4e64edb5922fa 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -563,6 +563,10 @@ class DD4hepSimulation(object):
     ### add current working directory (where we call from)
     runHeader["WorkingDirectory"] = os.getcwd()
 
+    ### ILCSoft, LCGEo location from environment variables, names from init_ilcsoft.sh
+    runHeader["ILCSoft_location"] = os.environ.get("ILCSOFT", "Unknown")
+    runHeader["lcgeo_location"] = os.environ.get("lcgeo_DIR", "Unknown")
+
     ### add date
     runHeader["DateUTC"] = str(datetime.datetime.utcnow())+" UTC"