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]); + } }