Overflown/launcher.py

15 lines
262 B
Python
Raw Normal View History

2021-06-25 14:42:35 +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()