summaryrefslogtreecommitdiff
path: root/dev-python/twisted/files/twisted-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch
blob: ed1a4684067868ee079b81f6549105ccbd3994cc (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/twisted/plugin.py
+++ src/twisted/plugin.py
@@ -180,7 +180,7 @@
             if pluginKey not in existingKeys:
                 del dropinDotCache[pluginKey]
                 needsWrite = True
-        if needsWrite:
+        if needsWrite and os.environ.get("TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE") is None:
             try:
                 dropinPath.setContent(pickle.dumps(dropinDotCache))
             except: