17 lines
588 B
Python
Raw Normal View History

2025-07-10 09:41:26 +08:00
#!C:\Python\Python310\python.exe
import sys
# Running main() must be protected that way due to use of multiprocessing on Windows:
# https://docs.python.org/3/library/multiprocessing.html#the-spawn-and-forkserver-start-methods
if __name__ == "__main__":
from osgeo.gdal import UseExceptions, deprecation_warn
UseExceptions()
# import osgeo_utils.gdal2tiles as a convenience to use as a script
from osgeo_utils.gdal2tiles import * # noqa
from osgeo_utils.gdal2tiles import main
deprecation_warn("gdal2tiles")
sys.exit(main(sys.argv, called_from_main=True))