Skip to content
Browse files

only _AddDllDirectory existing directories (fixes OSGeo4W#649)

  • Loading branch information
jef-n committed Nov 9, 2020
1 parent 06ed78e commit ef0c4722edc60901850a42ca3453a71bde5c279a
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 ef0c472

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