This commit is contained in:
2025-01-26 19:24:23 -08:00
parent 32cd60e92b
commit d1dde0dbc6
4155 changed files with 29170 additions and 216373 deletions

View File

@@ -4,13 +4,11 @@
# adapted from Fiona: https://github.com/Toblerity/Fiona/pull/875
from contextlib import contextmanager
import logging
import os
from pathlib import Path
import platform
import sys
from contextlib import contextmanager
from pathlib import Path
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
@@ -29,10 +27,10 @@ except ImportError:
gdal_dll_dir = None
if platform.system() == "Windows" and sys.version_info >= (3, 8):
if platform.system() == "Windows":
# if loading of extension modules fails, search for gdal dll directory
try:
import pyogrio._io # NOQA
import pyogrio._io # noqa: F401
except ImportError:
for path in os.getenv("PATH", "").split(os.pathsep):