Skip to content

Commit

Permalink
only _AddDllDirectory existing directories (fixes OSGeo4W#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and jef-n committed Nov 9, 2020
1 parent 06bfb42 commit bf448c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/utils.py
Expand Up @@ -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(';')):
Expand Down

0 comments on commit bf448c3

Please sign in to comment.