[Lldb-commits] [lldb] r138262 - /lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Jim Ingham jingham at apple.com
Mon Aug 22 12:10:09 PDT 2011


Author: jingham
Date: Mon Aug 22 14:10:09 2011
New Revision: 138262

URL: http://llvm.org/viewvc/llvm-project?rev=138262&view=rev
Log:
Don't let Python write its .pyc files, that's not really polite...

Modified:
    lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Modified: lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp?rev=138262&r1=138261&r2=138262&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp Mon Aug 22 14:10:09 2011
@@ -2079,6 +2079,7 @@
 
     PyRun_SimpleString ("import sys");
     PyRun_SimpleString ("sys.path.append ('.')");
+    PyRun_SimpleString ("sys.dont_write_bytecode = 1");
 
     PyRun_SimpleString ("import embedded_interpreter");
     





More information about the lldb-commits mailing list