<s> def bundle_path ( subpath = None , rsrc = None , fmwk = None ) : <EOL> """<STR_LIT>""" <EOL> from os . path import join <EOL> from Foundation import NSBundle <EOL> bundle = NSBundle . mainBundle ( ) . bundlePath ( ) <EOL> if rsrc : <EOL> return join ( bundle , "<STR_LIT>" , "<STR_LIT>" , rsrc ) <EOL> if fmwk : <EOL> return join ( bundle , "<STR_LIT>" , "<STR_LIT>" , '<STR_LIT>' % fmwk ) <EOL> if subpath : <EOL> return join ( bundle , subpath ) <EOL> return bundle <EOL> from Foundation import NSTimer <EOL> def set_timeout ( target , sel , delay , info = None , repeat = False ) : <EOL> return NSTimer . scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ ( delay , target , sel , info , repeat ) <EOL> from . document import PlotDeviceDocument , PythonScriptDocument , ScriptController <EOL> from . app import PlotDeviceAppDelegate <EOL> from . views import GraphicsBackdrop , GraphicsView , FullscreenView <EOL> from . widgets import StatusView , DashboardController , ExportSheet </s>
