Skip to content

Commit

Permalink
Update __init__.py (#1294)
Browse files Browse the repository at this point in the history
fix `OSError: [WinError 87]The parameter is incorrect. : '.' `when p=“."
  • Loading branch information
IncubatorShokuhou authored Oct 1, 2023
1 parent ea32038 commit ca25c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fiona/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if "PATH" in os.environ:
for p in os.environ["PATH"].split(os.pathsep):
if glob.glob(os.path.join(p, "gdal*.dll")):
os.add_dll_directory(p)
os.add_dll_directory(os.path.abspath(p))


from fiona._env import (
Expand Down

0 comments on commit ca25c5a

Please sign in to comment.