Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #38720
(cherry picked from commit 44b4a75)
  • Loading branch information
jef-n committed Sep 15, 2020
1 parent a235a14 commit df27394
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/utils.py
Expand Up @@ -780,13 +780,11 @@ def _import(name, globals={}, locals={}, fromlist=[], level=None):
global _RemoveDllDirectory

for p in set(new_path.split(';')) - set(old_path.split(';')):
if p:
qDebug(u"AddDllDirectory:{}".format(p))
if p is not None and p not in _import_path:
_import_paths[p] = _AddDllDirectory(p)

for p in set(old_path.split(';')) - set(new_path.split(';')):
if p in _import_paths:
qDebug(u"RemoveDllDirectory:{}".format(p))
_RemoveDllDirectory(_import_paths.pop(p))

_import_path = new_path
Expand Down

0 comments on commit df27394

Please sign in to comment.