Overflown/launcher.py
2021-06-25 14:42:35 +02:00

15 lines
262 B
Python

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()