diff --git a/options/tracker_reconstruction.py b/options/tracker_reconstruction.py
index a3bc67cb9249b8656d75c0fe1921ad3b82f30dea..f0e13a60ad1f0fd7e2ad71cdbca122eaea115e86 100644
--- a/options/tracker_reconstruction.py
+++ b/options/tracker_reconstruction.py
@@ -12,7 +12,10 @@ if "JUGGLER_DETECTOR" in os.environ :
 input_sim_file  = str(os.environ["JUGGLER_SIM_FILE"])
 output_rec_file = str(os.environ["JUGGLER_REC_FILE"])
 n_events = str(os.environ["JUGGLER_N_EVENTS"])
-detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"])
+
+detector_path = ""
+if "JUGGLER_DETECTOR_PATH" in os.environ :
+    detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"])
 
 geo_service  = GeoSvc("GeoSvc",
         detectors=["{}/{}.xml".format(detector_path, detector_name)])