From cc099999b9cf0c542b51a7f58f53b9e65709faef Mon Sep 17 00:00:00 2001
From: Nicolas Essing <n.essing@fz-juelich.de>
Date: Tue, 5 Oct 2021 08:54:07 +0200
Subject: [PATCH] Fixed two small bugs in input generation

In generate.sh, the inputgenerator.py is now called as a local script.

In inputgenerator.py, use /usr/bin/env to be independent of actual python installation dir.
Explicitly use python2, which is needed by the skript and not always the default anymore.
---
 source/KKRnano/source/datastructures/generate.sh       | 2 +-
 source/KKRnano/source/datastructures/inputgenerator.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/KKRnano/source/datastructures/generate.sh b/source/KKRnano/source/datastructures/generate.sh
index fb1ee7f62..575aef333 100755
--- a/source/KKRnano/source/datastructures/generate.sh
+++ b/source/KKRnano/source/datastructures/generate.sh
@@ -1,4 +1,4 @@
 #!/bin/bash
 #inputgenerator.py Dimensions dimensions.txt > Dimensions_mod.f90
 cp InputParams_mod.F90 InputParams_mod.F90.bak
-inputgenerator.py InputParams InputParamsNew.txt > InputParams_mod.F90
+./inputgenerator.py InputParams InputParamsNew.txt > InputParams_mod.F90
diff --git a/source/KKRnano/source/datastructures/inputgenerator.py b/source/KKRnano/source/datastructures/inputgenerator.py
index 881ef693f..0fc30ea33 100755
--- a/source/KKRnano/source/datastructures/inputgenerator.py
+++ b/source/KKRnano/source/datastructures/inputgenerator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 """
 Reads file defs.txt and generates Fortran code for reading an inputfile.
-- 
GitLab