Skip to content
Permalink
Browse files

fix #38720

  • Loading branch information
github-actions authored and jef-n committed Sep 15, 2020
1 parent f25f600 commit 8b051b9a4350bf8a85cf02275d8a23147eb9df55
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/utils.py
@@ -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

0 comments on commit 8b051b9

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