asteroids/venv/lib/python3.11/site-packages/pygame/macosx.py
Florian Schmitt 2e5df21095 first commit
2024-10-08 15:38:46 +03:00

13 lines
329 B
Python

import platform
import os
import sys
__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