Skip to content
Permalink
Browse files

only _AddDllDirectory existing directories (fixes OSGeo4W#649)

  • Loading branch information
github-actions authored and jef-n committed Nov 9, 2020
1 parent 0ee4ffd commit a191ffd76e3de6a9f41c25c2f9d41df85ab3cefc
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/utils.py
@@ -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 a191ffd

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