Skip to content

Commit

Permalink
Merge pull request #25 from AdriMil/24-rocket-deploy-exe-file
Browse files Browse the repository at this point in the history
🚀 .exe creation file added
  • Loading branch information
AdriMil authored Mar 6, 2024
2 parents 0e03a3d + 9d945c5 commit 6359e09
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
__pycache__
test.py
build
dist
5 changes: 1 addition & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def PlaceFlecheButtons():

def choosemultifiles():
global files,PlacementUniqueFleche, index_from_selected_ligne
files = filedialog.askopenfilenames(initialdir=chemin_init, title="Sélectionner plusieurs fichiers", filetypes=(("Images png", "*.png"), ("Images jpeg", "*.jpg"),("Images HEIC", "*.heic")))
files = filedialog.askopenfilenames(initialdir=chemin_init, title="Sélectionner plusieurs fichiers", filetypes=(("Images PNG", "*.png"), ("Images JPEG", "*.jpg"),("Images HEIC", "*.heic")))
if files:
Btn_Reset.configure(state=tk.NORMAL); Btn_Convertir.configure(state=tk.NORMAL)
for file in files:
Expand Down Expand Up @@ -133,8 +133,6 @@ def Convertir_pdf(FileName):
if (liste_chemin_update == []):
GetFilesPAthList()


print("liste chemin udpate : ", liste_chemin_update)
Save_Path()
chemin_final = Chemin
if(chemin_final==''): #Verif si un chemin final est indiqué
Expand Down Expand Up @@ -280,7 +278,6 @@ def DisableButtonIfNecessery():
tab1 = ttk.Frame(tabControl)
tab2 = ttk.Frame(tabControl)
tabControl.add(tab1, text ='Pdf Creator')
tabControl.add(tab2, text ='In Progress')
tabControl.pack(expand= 1, fill ="both")

gui(root) # Selection du fichier csv
Expand Down
38 changes: 38 additions & 0 deletions main.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['main.py'],
pathex=['C:\\Users\\Adrie\\Documents\\Programmation_Git\\OfficeAssistant'],
binaries=[],
datas=[('Pictures/','Pictures')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='OfficeAssistant',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['Pictures/OfficeAssistanticone.ico'],
)

0 comments on commit 6359e09

Please sign in to comment.