init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
15
.venv/lib/python3.8/site-packages/pygame/macosx.py
Normal file
15
.venv/lib/python3.8/site-packages/pygame/macosx.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue