From 6245b00de6b5e8910f7ca2c7a3db52af5fee85ea Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Sun, 19 May 2024 21:50:01 -0500 Subject: [PATCH] check for PDAL_DRIVER_PATH in the environment before accessing --- src/pdal/__init__.py | 2 +- src/pdal/__main__.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pdal/__init__.py b/src/pdal/__init__.py index b0e7d699..5c2feabb 100644 --- a/src/pdal/__init__.py +++ b/src/pdal/__init__.py @@ -1,5 +1,5 @@ __all__ = ["Pipeline", "Stage", "Reader", "Filter", "Writer", "dimensions", "info"] -__version__ = '3.4.2' +__version__ = '3.4.3' from . import libpdalpython from .drivers import inject_pdal_drivers diff --git a/src/pdal/__main__.py b/src/pdal/__main__.py index b0da6098..8c85020c 100644 --- a/src/pdal/__main__.py +++ b/src/pdal/__main__.py @@ -18,7 +18,8 @@ def __dir__() -> list[str]: def print_driver_path(args): - print (os.environ['PDAL_DRIVER_PATH']) + if 'PDAL_DRIVER_PATH' in os.environ: + print (os.environ['PDAL_DRIVER_PATH']) def print_plugin_path(args): purelib = sysconfig.get_paths()["purelib"]