pygame / lib /

bob 6e27a08 
zeroth f6c4846 

bob 9ee5c22 
bob 6e27a08 
brian 401c014 
bob 6b987b9 
brian 401c014 
bob 6e27a08 
brian 401c014 

zeroth f6c4846 
brian 401c014 
Lenard Lindstrom c35441d 
brian 401c014 

bob 63d7f1a 
bob 6fff2b4 
bob 63d7f1a 
import os, sys

    import MacOS
    MacOS = None

from pygame.pkgdata import getResource

from pygame import sdlmain_osx

__all__ = ['Video_AutoInit']

def Video_AutoInit():
    """This is a function that's called from the c extension code
       just before the display module is initialized"""
    if MacOS and not MacOS.WMAvailable():
        if not sdlmain_osx.WMEnable():
            raise ImportError("Can not access the window manager.  Use py2app or execute with the pythonw script.")
    if not sdlmain_osx.RunningFromBundleWithNSApplication():
            default_icon_data = getResource('pygame_icon.tiff').read()
        except IOError:
            default_icon_data = None
    if (os.getcwd() == '/') and len(sys.argv) > 1:
    return True
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.