From df93297515e8f91c2d9e61f066ec2616b6689ff8 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 30 Jun 2016 10:23:07 -0600 Subject: [PATCH] Don't write pyc files 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 --- teuthology/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/teuthology/__init__.py b/teuthology/__init__.py index e44c612eab..d12e163498 100644 --- a/teuthology/__init__.py +++ b/teuthology/__init__.py @@ -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' -- 2.39.5