Kaydet (Commit) 1140e24a authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't try to write Python bytecode files in case of a read-only installset

It causes annoying messages in the system log in the OS X sandboxed
case.

Change-Id: I8ae3eb34df2c045bdbdfc63cae9007f973c42537
üst 6a750e18
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <config_features.h>
#include <config_folders.h>
#include <pyuno/pyuno.hxx>
......@@ -219,6 +220,11 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c
#else
PyImport_AppendInittab( (char*)"pyuno", initpyuno );
#endif
#if HAVE_FEATURE_READONLY_INSTALLSET
Py_DontWriteBytecodeFlag = 1;
#endif
// initialize python
Py_Initialize();
PyEval_InitThreads();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment