Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/pygame/macosx.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pygame/macosx.py')
-rwxr-xr-xlib/pygame/macosx.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/pygame/macosx.py b/lib/pygame/macosx.py
deleted file mode 100755
index db08582..0000000
--- a/lib/pygame/macosx.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import os, sys
-
-try:
- import MacOS
-except:
- 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():
- try:
- default_icon_data = getResource('pygame_icon.tiff').read()
- except IOError:
- default_icon_data = None
- sdlmain_osx.InstallNSApplication(default_icon_data)
- if (os.getcwd() == '/') and len(sys.argv) > 1:
- os.chdir(os.path.dirname(sys.argv[0]))
- return True