Skip to content
Browse files

only _AddDllDirectory existing directories (fixes OSGeo4W#649)

  • Loading branch information
github-actions authored and jef-n committed Nov 9, 2020
1 parent 06bfb42 commit bf448c39979fe1d9940ed408ac8cacfd9eb04bc0
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/
@@ -780,7 +780,7 @@ def _import(name, globals={}, locals={}, fromlist=[], level=None):
global _RemoveDllDirectory

for p in set(new_path.split(';')) - set(old_path.split(';')):
if p is not None and p not in _import_path:
if p is not None and p not in _import_path and os.path.isdir(p):
_import_paths[p] = _AddDllDirectory(p)

for p in set(old_path.split(';')) - set(new_path.split(';')):

0 comments on commit bf448c3

Please sign in to comment.
You can’t perform that action at this time.