@@ -25,7 +25,6 @@ int main(int argc, char *argv[]) {
2525 wchar_t *wtmp_str;
2626 wchar_t *app_packages_path_str;
2727 const char * app_module_str;
28- const char * nslog_script;
2928 PyObject *app_packages_path;
3029 PyObject *app_module;
3130 PyObject *module;
@@ -162,30 +161,6 @@ int main(int argc, char *argv[]) {
162161 }
163162
164163 @try {
165- // Set the name of the python NSLog bootstrap script
166- nslog_script = [
167- [[NSBundle mainBundle ] pathForResource: @" app_packages/nslog"
168- ofType: @" py" ] cStringUsingEncoding: NSUTF8StringEncoding];
169- if (nslog_script == NULL ) {
170- NSLog (@" No Python NSLog handler found. stdout/stderr will not be captured." );
171- NSLog (@" To capture stdout/stderr, add 'std-nslog' to your app dependencies." );
172- } else {
173- NSLog (@" Installing Python NSLog handler..." );
174- FILE * fd = fopen (nslog_script, " r" );
175- if (fd == NULL ) {
176- crash_dialog (@" Unable to open nslog.py" );
177- exit (-1 );
178- }
179-
180- ret = PyRun_SimpleFileEx (fd, nslog_script, 1 );
181- fclose (fd);
182- if (ret != 0 ) {
183- crash_dialog (@" Unable to install Python NSLog handler" );
184- exit (ret);
185- }
186- }
187-
188-
189164 // Adding the app_packages as site directory.
190165 //
191166 // This adds app_packages to sys.path and executes any .pth
@@ -226,7 +201,6 @@ int main(int argc, char *argv[]) {
226201 exit (-15 );
227202 }
228203
229-
230204 // Start the app module.
231205 //
232206 // From here to Py_ObjectCall(runmodule...) is effectively
0 commit comments