From 44b4a75a0a772604c73c6bb0d901b2599e9779d9 Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Mon, 14 Sep 2020 21:31:11 +0200 Subject: [PATCH] fix #38720 --- python/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/utils.py b/python/utils.py index b070e73f2e1..5f02364eedb 100644 --- a/python/utils.py +++ b/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