From d374297fce8f6cb06ceba60f0fe92e4130903d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Fri, 4 Sep 2015 14:35:16 +0200 Subject: [PATCH] input parameter containg '.py' is interpreted as -py=... --- ng/ngappinit.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ng/ngappinit.cpp b/ng/ngappinit.cpp index 86a9c085..429f6d14 100644 --- a/ng/ngappinit.cpp +++ b/ng/ngappinit.cpp @@ -148,7 +148,12 @@ int main(int argc, char ** argv) if (argv[i][0] == '-') parameters.SetCommandLineFlag (argv[i]); else - parameters.SetFlag ("geofile", argv[i]); + { + if (strstr(argv[i], ".py")) + parameters.SetFlag ("py", argv[i]); + else + parameters.SetFlag ("geofile", argv[i]); + } }