Declared main() for packaging
This commit is contained in:
parent
36a4339172
commit
23b3543ba9
@ -28,6 +28,7 @@ config = 'IFPass.conf'
|
||||
|
||||
|
||||
def initialisation():
|
||||
global clientsfile, IFPassdir, clientsfile, clientID, imgdir, dateexp, titre, dateinsc, firstname, surname, clientsbkpfile, pngtemplate, fonttemplate, fullname, picture, pdftemplate, printername, AcrobatReader
|
||||
conf = configparser.ConfigParser()
|
||||
conf.optionxform = str # For case sensitive config file
|
||||
|
||||
@ -286,6 +287,7 @@ def membersearch():
|
||||
print(colored("Aucun membre n'a été trouvé.", 'red', attrs=['bold']))
|
||||
|
||||
|
||||
def main():
|
||||
while "The program is running":
|
||||
init() # Initialisation of colorama
|
||||
IFPassdir, printername, AcrobatReader, clientsfile, clientsbkpfile, imgdir, pdftemplate, pngtemplate, fonttemplate = initialisation()
|
||||
@ -331,6 +333,7 @@ while "The program is running":
|
||||
if correct:
|
||||
os.system('cls')
|
||||
if version != 'devnocam':
|
||||
global picture
|
||||
picture = getpic()
|
||||
clientID = getclientID()
|
||||
barcode = barcode_gen(clientID)
|
||||
|
@ -1,10 +1,10 @@
|
||||
[Application]
|
||||
name=IFPass
|
||||
version=2.2
|
||||
target=IFPass.py
|
||||
entry_point=IFPass:main
|
||||
|
||||
[Python]
|
||||
version=3.7.2
|
||||
version=3.7.1
|
||||
|
||||
[Include]
|
||||
# Packages from PyPI that your application requires, one per line
|
||||
|
Loading…
Reference in New Issue
Block a user