OSX: Improve app startup time

Importing everything (*) from AppKit takes a while, since we got 3 scripts
doing that, startup could take up to few seconds. This change makes script
import only what they need, improving startup time to fraction of second.
This commit is contained in:
Adam Strzelecki 2015-04-20 18:53:06 +02:00
parent b19272a67a
commit 1b1ed4d495
3 changed files with 23 additions and 3 deletions

View File

@ -1,7 +1,21 @@
import sys
import os
import pty
from AppKit import *
from AppKit import (
objc,
NSApp,
NSApplicationMain,
NSAttributedString,
NSFileHandle,
NSFileHandleDataAvailableNotification,
NSImage,
NSMenu,
NSMenuItem,
NSNotificationCenter,
NSObject,
NSStatusBar,
NSVariableStatusItemLength,
)
import my
import models
import askpass

View File

@ -1,4 +1,4 @@
from AppKit import *
from AppKit import (objc, NSObject)
import my

View File

@ -1,5 +1,11 @@
import os
from AppKit import *
from AppKit import (
NSBundle,
NSData,
NSDictionary,
NSImage,
NSUserDefaults,
)
import PyObjCTools.AppHelper