PinmikPanik/launcher.py

15 lines
262 B
Python
Raw Permalink Normal View History

2021-09-10 19:22:30 +02:00
import os,sys
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'): # Change le dossier d'execution si le jeu est packagé
os.chdir(sys._MEIPASS)
from gamedata.game import *
game = Game()
while game.running:
game.game_loop()
pygame.quit()