Skip to content

Commit

Permalink
Globally turn off writing python byte code (.pyc) files
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakk authored and Zakk committed Aug 23, 2015
1 parent ffcd885 commit 052207f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CocoaSplit/CaptureController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ +(void)initializePython

NSString *resourcePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Python"];

NSString *sysstr = [NSString stringWithFormat:@"from Foundation import *; import sys; sys.path.append('%@');", resourcePath];
NSString *sysstr = [NSString stringWithFormat:@"from Foundation import *; import sys; sys.path.append('%@');sys.dont_write_bytecode = True", resourcePath];
PyGILState_STATE gilState = PyGILState_Ensure();
PyRun_SimpleString([sysstr UTF8String]);
PyGILState_Release(gilState);
Expand Down

0 comments on commit 052207f

Please sign in to comment.