summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-08-22 19:10:09 +0000
committerJim Ingham <jingham@apple.com>2011-08-22 19:10:09 +0000
commit586b0bd8bda486a33283db43874635a26937221a (patch)
tree25c71cd6dfcb30e55e9dc7284cae3f1be0f9ade7 /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parent618e574253c44e092800608f75ef8370ffca3d65 (diff)
downloadbcm5719-llvm-586b0bd8bda486a33283db43874635a26937221a.tar.gz
bcm5719-llvm-586b0bd8bda486a33283db43874635a26937221a.zip
Don't let Python write its .pyc files, that's not really polite...
llvm-svn: 138262
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index 45c68b1d59b..fe1fe2302ad 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");
OpenPOWER on IntegriCloud