Page 1 of 1
Deployer waptexit-logo
Published: Dec 13, 2018 - 10:53
by nawak
Hello,
I wanted to know if there was a way to deploy the logo for Wapt Exit via Wapt?
C:\wapt\templates\waptexit-logo.png
Thank you for your feedback.
Have a good day
Re: Deployer waptexit-logo
Published: Dec 13, 2018 - 4:10 PM
by nawak
Could this work?
Code: Select all
print("Copie du logo waptexit-logo.png")
if isdir(makepath(programfiles32,'wapt','templates')):
if isfile(makepath(programfiles32,'wapt','templates','waptexit-logo.png')):
print("Le logo existe déjà !")
else:
filecopyto('waptexit-logo.png',makepath(programfiles32,'wapt','templates'))
else:
print("Copie du logo impossible le dossier template de WAPT n'existe pas !")
Re: Deployer waptexit-logo
Published: Dec 14, 2018 - 2:13 PM
by nawak
Hello again
Code: Select all
print('Copie du logo waptexit-logo.png')
if isdir(makepath(programfiles32,'wapt','templates')):
if isfile(makepath(programfiles32,'wapt','templates','waptexit-logo.png')):
print('Le logo existe déjà !')
else:
filecopyto('waptexit-logo.png',makepath(programfiles32,'wapt','templates'))
print('Le logo a ete copié !')
else:
print('Copie du logo impossible le dossier template de WAPT n\'éxiste pas !')
The code works, but the accents aren't displaying. Any ideas?
I tried:
Code: Select all
print(ur'Copie du logo impossible le dossier template de WAPT n\'éxiste pas !')
But it doesn't work.
++
Re: Deployer waptexit-logo
Published: Dec 17, 2018 - 12:30
by agauvrit
Solution :
Code: Select all
print(ur"Copie du logo impossible le dossier template de WAPT n\'éxiste pas !")
- When the string contains one or more apostrophes, enclose it in quotation marks
- When the string contains one or more quotation marks, enclose it in apostrophes
Re: Deployer waptexit-logo
Published: Dec 17, 2018 - 2:36 PM
by nawak
Good morning,
Thanks for the explanation. If I run the test in PyScripter debug mode, I get this output:
Logo copying is impossible; the WAPT template folder does not exist!
Any ideas?
THANKS
Have a good day!