File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -2565,24 +2565,12 @@ static void context_cleanup(const void* info)
2565
2565
2566
2566
static bool verify_framework (void )
2567
2567
{
2568
- #ifdef COMPILING_FOR_10_6
2569
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
2570
- NSRunningApplication * app = [NSRunningApplication currentApplication ];
2571
- NSApplicationActivationPolicy activationPolicy = [app activationPolicy ];
2572
- [pool release ];
2573
- switch (activationPolicy) {
2574
- case NSApplicationActivationPolicyRegular:
2575
- case NSApplicationActivationPolicyAccessory:
2576
- return true ;
2577
- case NSApplicationActivationPolicyProhibited:
2578
- break ;
2579
- }
2580
- #else
2581
2568
ProcessSerialNumber psn;
2569
+ /* These methods are deprecated, but they don't require the app to
2570
+ have started */
2582
2571
if (CGMainDisplayID ()!=0
2583
2572
&& GetCurrentProcess (&psn)==noErr
2584
2573
&& SetFrontProcess (&psn)==noErr ) return true ;
2585
- #endif
2586
2574
PyErr_SetString (PyExc_ImportError,
2587
2575
" Python is not installed as a framework. The Mac OS X backend will "
2588
2576
" not be able to function correctly if Python is not installed as a "
You can’t perform that action at this time.
0 commit comments