AIprojekt-wozek/venv/Lib/site-packages/pygame/macosx.py
2022-03-10 19:45:28 +01:00

16 lines
399 B
Python

import platform
import os
import sys
from pygame.pkgdata import getResource
from pygame import sdlmain_osx
__all__ = ["Video_AutoInit"]
def Video_AutoInit():
"""Called from the base.c just before display module is initialized."""
if "Darwin" in platform.platform():
if (os.getcwd() == "/") and len(sys.argv) > 1:
os.chdir(os.path.dirname(sys.argv[0]))
return True