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

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