-
Notifications
You must be signed in to change notification settings - Fork 3
/
compile.py
executable file
·41 lines (36 loc) · 1.13 KB
/
compile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# A Python script to generate .exe from python project - Gomoku.
#
# (02/05/2021) - Barcelona
# Authors: Corentin COUTRET-ROZET <corentin.rozet@epitech.eu>
# Maxence DESROUSSEAUX <maxence.desrousseaux@epitech.eu>
# Hugo LACKAR <hugo1.lachkar@epitech.eu>
#
from os import system
files = [
"deps\\__init__.py",
"deps\\infos.py",
"sources\\algorithm\\__init__.py",
"sources\\algorithm\\AIMove.py",
"sources\\commands\\__init__.py",
"sources\\commands\\About.py",
"sources\\commands\\Begin.py",
"sources\\commands\\Board.py",
"sources\\commands\\End.py",
"sources\\commands\\Info.py",
"sources\\commands\\Start.py",
"sources\\commands\\Turn.py",
"sources\\utils\\__init__.py",
"sources\\utils\\definitions.py",
"sources\\utils\\Log.py",
"sources\\utils\\tools.py",
"sources\\Game.py",
"sources\\GameBoard.py",
"sources\\main.py"
]
files_list = ""
for file in files:
files_list += " " + file
system("pip install pyinstaller")
system("pyinstaller" + files_list + " --name pbrain-gomoku-ai.exe --onefile")
system('copy .\\dist\\pbrain-gomoku-ai.exe .')