From 756eb1f1a91d08803a5349b0763a7cecc6b98d60 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Wed, 10 Aug 2022 14:04:20 +0200
Subject: [PATCH] Fix python formatting

---
 examples/DDG4/scripts/Channeling.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/DDG4/scripts/Channeling.py b/examples/DDG4/scripts/Channeling.py
index dd9f67d6d..b86c7e3ea 100644
--- a/examples/DDG4/scripts/Channeling.py
+++ b/examples/DDG4/scripts/Channeling.py
@@ -33,6 +33,7 @@ def run():
   from g4units import keV
 
   args = DDG4.CommandLine()
+  install_dir = os.environ['DD4hepExamplesINSTALL']
   if args.help:
     import sys
     logger.info("""
@@ -48,9 +49,7 @@ def run():
     """)
     sys.exit(0)
 
-
   kernel = DDG4.Kernel()
-  install_dir = os.environ['DD4hepExamplesINSTALL']
   kernel.loadGeometry(str("file:" + install_dir + "/examples/DDG4/compact/Channeling.xml"))
 
   DDG4.importConstants(kernel.detectorDescription(), debug=False)
-- 
GitLab