Skip to content

Commit

Permalink
check for PDAL_DRIVER_PATH in the environment before accessing
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed May 20, 2024
1 parent 7afdf3c commit 6245b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pdal/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/pdal/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 6245b00

Please sign in to comment.