input parameter containg '.py' is interpreted as -py=...

This commit is contained in:
Joachim Schöberl 2015-09-04 14:35:16 +02:00
parent 8ff13c1d24
commit d374297fce

View File

@ -147,9 +147,14 @@ int main(int argc, char ** argv)
{ {
if (argv[i][0] == '-') if (argv[i][0] == '-')
parameters.SetCommandLineFlag (argv[i]); parameters.SetCommandLineFlag (argv[i]);
else
{
if (strstr(argv[i], ".py"))
parameters.SetFlag ("py", argv[i]);
else else
parameters.SetFlag ("geofile", argv[i]); parameters.SetFlag ("geofile", argv[i]);
} }
}
if (getenv ("NETGENDIR") && strlen (getenv ("NETGENDIR"))) if (getenv ("NETGENDIR") && strlen (getenv ("NETGENDIR")))