mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-11 00:04:09 -04:00
fix #38720
This commit is contained in:
parent
39b78b4006
commit
44b4a75a0a
@ -780,13 +780,11 @@ def _import(name, globals={}, locals={}, fromlist=[], level=None):
|
|||||||
global _RemoveDllDirectory
|
global _RemoveDllDirectory
|
||||||
|
|
||||||
for p in set(new_path.split(';')) - set(old_path.split(';')):
|
for p in set(new_path.split(';')) - set(old_path.split(';')):
|
||||||
if p:
|
if p is not None and p not in _import_path:
|
||||||
qDebug(u"AddDllDirectory:{}".format(p))
|
|
||||||
_import_paths[p] = _AddDllDirectory(p)
|
_import_paths[p] = _AddDllDirectory(p)
|
||||||
|
|
||||||
for p in set(old_path.split(';')) - set(new_path.split(';')):
|
for p in set(old_path.split(';')) - set(new_path.split(';')):
|
||||||
if p in _import_paths:
|
if p in _import_paths:
|
||||||
qDebug(u"RemoveDllDirectory:{}".format(p))
|
|
||||||
_RemoveDllDirectory(_import_paths.pop(p))
|
_RemoveDllDirectory(_import_paths.pop(p))
|
||||||
|
|
||||||
_import_path = new_path
|
_import_path = new_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user