mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
input parameter containg '.py' is interpreted as -py=...
This commit is contained in:
parent
8ff13c1d24
commit
d374297fce
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user