]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't write pyc files
authorZack Cerza <zack@redhat.com>
Thu, 30 Jun 2016 16:23:07 +0000 (10:23 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 30 Jun 2016 16:31:27 +0000 (10:31 -0600)
The .pyc files that python generates can be problematic if we move
modules around; teuthology processes end up picking up the old .pyc
files instead of finding the new .py files

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/__init__.py

index e44c612eabc09281e36ceefe94c3af242b29f416..d12e16349800fc2a0673ebc24bdfc0cc00cf2175 100644 (file)
@@ -4,12 +4,16 @@ monkey.patch_all(
     # Don't patch subprocess to avoid http://tracker.ceph.com/issues/14990
     subprocess=False,
 )
+import sys
+
+# Don't write pyc files
+sys.dont_write_bytecode = True
+
 from .orchestra import monkey
 monkey.patch_all()
 
 import logging
 import os
-import sys
 
 
 __version__ = '0.1.0'