[gdal-dev] The proper way to call gdal "scripts" on Windows?

Richard Duivenvoorde rdmailings at duif.net
Thu Feb 25 02:02:23 PST 2021


On 2/25/21 10:53 AM, Idan Miara wrote:
> Actually, it might be a good idea to use a batch file...
> 
> I've created the following batch file named gdal_calc.bat in the scripts folder:
> @python %~dp0\gdal_calc.py %*
> 
> Then running gdal_calc works even if *.py is associated with PyCharm.
> Do you think this issue justifies creating this kind of batch files for the scripts to distribute in binary windows wheels ?

Mmm, /me no windows expert, I don't know. 

But couldn't this be a potential security issue? But I let knowledge to Windows/Python packagers....

Regards,

Richard Duivenvoorde


More information about the gdal-dev mailing list