[GRASS-dev] [GRASS-SVN] r60679 - grass/trunk/lib/python/script
Martin Landa
landa.martin at gmail.com
Wed Jun 4 13:48:47 PDT 2014
2014-06-04 22:35 GMT+02:00 Markus Neteler <neteler at osgeo.org>:
>> 2. If we know that the "program" is a script, the interpreter can be
>> specified explicitly (i.e. "python path/to/script.py"). This keeps the
>> shell out of the picture.
>
> ... how much effort is the latter? Check file type and path to file?
this check has been removed from thunk [1].
...
fcmd = get_real_command(args[0])
if fcmd.endswith('.py'):
....
Martin
[1] http://trac.osgeo.org/grass/changeset/60679/grass/trunk/lib/python/script/core.py
--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
More information about the grass-dev
mailing list