Bugs correction
This commit is contained in:
parent
5db8255843
commit
07ec96d33a
11
IFPass.py
11
IFPass.py
@ -45,7 +45,12 @@ def initialisation():
|
||||
else:
|
||||
acrinstalled = yes_or_no("Acrobat Reader est nécessaire pour imprimer les cartes. Est il installé ?")
|
||||
if acrinstalled:
|
||||
while "Wrong path":
|
||||
AcrobatReader = input(r"Quel est le chemin vers Acrobat Reader ? ( Ex : C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe) : ")
|
||||
if os.path.exists(AcrobatReader):
|
||||
break
|
||||
else:
|
||||
print(colored('\nChemin invalide !', 'red'))
|
||||
else:
|
||||
print(colored('\nInstallez Acrobat Reader, puis relancez IFPass.', 'red'))
|
||||
os.system("pause")
|
||||
@ -64,9 +69,9 @@ def initialisation():
|
||||
clientsbkpfile = os.path.join(IFPassDBdir, 'Clients_IFPass_backup.csv')
|
||||
imgdir = os.path.join(IFPassDBdir, 'Cartes')
|
||||
templatesdir = os.path.join(IFPassDBdir, 'Templates')
|
||||
pdftemplate = os.path.join(templatesdir, 'Templates', 'IFPass_PDF_Template.pdf')
|
||||
pngtemplate = os.path.join(templatesdir, 'Templates', 'IFPass_PNG_Template.png')
|
||||
fonttemplate = os.path.join(templatesdir, 'Templates', 'Roboto-Bold.ttf')
|
||||
pdftemplate = os.path.join(templatesdir, 'IFPass_PDF_Template.pdf')
|
||||
pngtemplate = os.path.join(templatesdir, 'IFPass_PNG_Template.png')
|
||||
fonttemplate = os.path.join(templatesdir, 'Roboto-Bold.ttf')
|
||||
|
||||
if not os.path.exists(imgdir): # Cartes dir creation if it doesn't exist
|
||||
os.makedirs(imgdir, 0o777)
|
||||
|
Loading…
Reference in New Issue
Block a user