From 8fd35574400834517db2a51e92eba970f614843e Mon Sep 17 00:00:00 2001 From: Lionel Date: Thu, 4 Oct 2018 08:13:08 +0200 Subject: On a encore plus nettoyé tout ce bazard, on va maintenant améliorer le sctrip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit t pour le parsing des fichiers --- init.py | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'init.py') diff --git a/init.py b/init.py index 2ea3548..1668f69 100644 --- a/init.py +++ b/init.py @@ -1,15 +1,28 @@ import os -from choices import mapfileinput +import inputs foldernames=["Cirque de Cilaos","Cirque de Mafate","Cirque de Salazie","Est","Nord","Ouest","Sud","Volcan","Ailleurs","All"] totalfolders=foldernames - +randonb=[] +basicfilename="" print "\n\nWelcome ! \nWith this script, you will be able to download gpx,trk and kml traces for hitchiking on the Reunion Isle." - +loginmail() +logipass() +filetype=mapfileinput() +if filetype==1: + basicfilename="f.gpx" +else if filetype==2: + basicfilename="f.trk" +else: + basicfilename="f.kml" + +payload = { + 'mail': MAIL, + 'password': PSW +} -mapfileinput() -- cgit v1.2.3-54-g00ecf