gtn/.venv/Lib/site-packages/pygame/macosx.py
Tipragot 628be439b8 Ajout d'un environement de développement.
Cela permet de ne pas avoir de problèmes de compatibilité
car python est dans le git.
2023-10-26 15:33:03 +02:00

14 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