Skip to content

Commit

Permalink
update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
alavenant committed Dec 14, 2023
1 parent 73e64c1 commit 7afe71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import os
import subprocess

os.environ["PDAL_DRIVER_PATH"] = os.path.abspath('./install/lib')

def pdal_has_plugin(name_filter):
os.environ["PDAL_DRIVER_PATH"] = os.path.abspath('./install/lib')
print("init pdal driver : ", os.environ["PDAL_DRIVER_PATH"])
result = subprocess.run(['pdal', '--drivers'], stdout=subprocess.PIPE)
if name_filter not in result.stdout.decode('utf-8'):
raise ValueError("le script " + name_filter + " n'est pas visible")

0 comments on commit 7afe71f

Please sign in to comment.