aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-09-21 10:32:36 +0200
committerEike Ziller <eike.ziller@qt.io>2018-09-21 11:54:15 +0000
commite82fcad635c490732a23c2c0691991e876864186 (patch)
treeafabd4927c71d8031b33e754996cf6d0423ac8cd
parent2ab5bc0a257bd36f8abc39002d531ec6b15ba196 (diff)
Ignore __pycache__ when looking for extensions
Change-Id: I8cc0289e047ced546491639ea5a7b37b5cce0ac1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--plugins/pythonextensions/pythonextensionsplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/pythonextensions/pythonextensionsplugin.cpp b/plugins/pythonextensions/pythonextensionsplugin.cpp
index a230924..bdb2687 100644
--- a/plugins/pythonextensions/pythonextensionsplugin.cpp
+++ b/plugins/pythonextensions/pythonextensionsplugin.cpp
@@ -141,7 +141,8 @@ QStringList PythonExtensionsPlugin::extensionList(const bool loadedOnly)
return QStringList();
QStringList extension_list = extension_dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot);
- extension_list.removeOne("site-packages");
+ extension_list.removeAll("site-packages");
+ extension_list.removeAll("__pycache__");
return extension_list;
}