Skip to content

Commit 6245b00

Browse files
committed
check for PDAL_DRIVER_PATH in the environment before accessing
1 parent 7afdf3c commit 6245b00

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/pdal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__all__ = ["Pipeline", "Stage", "Reader", "Filter", "Writer", "dimensions", "info"]
2-
__version__ = '3.4.2'
2+
__version__ = '3.4.3'
33

44
from . import libpdalpython
55
from .drivers import inject_pdal_drivers

src/pdal/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def __dir__() -> list[str]:
1818

1919

2020
def print_driver_path(args):
21-
print (os.environ['PDAL_DRIVER_PATH'])
21+
if 'PDAL_DRIVER_PATH' in os.environ:
22+
print (os.environ['PDAL_DRIVER_PATH'])
2223

2324
def print_plugin_path(args):
2425
purelib = sysconfig.get_paths()["purelib"]

0 commit comments

Comments
 (0)