From 586b0bd8bda486a33283db43874635a26937221a Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Mon, 22 Aug 2011 19:10:09 +0000 Subject: Don't let Python write its .pyc files, that's not really polite... llvm-svn: 138262 --- lldb/source/Interpreter/ScriptInterpreterPython.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 45c68b1d59b7..fe1fe2302ad8 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -2079,6 +2079,7 @@ ScriptInterpreterPython::InitializePrivate () PyRun_SimpleString ("import sys"); PyRun_SimpleString ("sys.path.append ('.')"); + PyRun_SimpleString ("sys.dont_write_bytecode = 1"); PyRun_SimpleString ("import embedded_interpreter"); -- cgit v1.2.3