summaryrefslogtreecommitdiff
blob: 2fe22f1640b1ec54a6467570c38c4e04996b292b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- twisted/plugin.py
+++ twisted/plugin.py
@@ -174,7 +174,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: