diff options
author | Lionel <lionel.miquel46@gmail.com> | 2019-02-02 20:19:16 +0100 |
---|---|---|
committer | Lionel <lionel.miquel46@gmail.com> | 2019-02-02 20:19:16 +0100 |
commit | 9ae6167d9b7ce53a273c46cf96cc73aaefb167f9 (patch) | |
tree | 98bc395eea7f574ce78193b849b2a881a19b6c33 /prototyping/main.py | |
parent | f86db56f16896ef59be270526c090893809beae4 (diff) | |
download | randopitons-9ae6167d9b7ce53a273c46cf96cc73aaefb167f9.tar.gz randopitons-9ae6167d9b7ce53a273c46cf96cc73aaefb167f9.zip |
Deleted _config.yml, no use for it now
Diffstat (limited to 'prototyping/main.py')
-rwxr-xr-x | prototyping/main.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/prototyping/main.py b/prototyping/main.py new file mode 100755 index 0000000..56f04d6 --- /dev/null +++ b/prototyping/main.py @@ -0,0 +1,46 @@ +import os +import inputs as io + +import colorcode as clc +foldernames=["Cirque de Cilaos","Cirque de Mafate","Cirque de Salazie","Est","Nord","Ouest","Sud","Volcan","Ailleurs","All"] +webregionnames=[] +for i in range(9): + try: + leftside=foldernames[i].split(' ')[0].lower()+"-" + rightside=foldernames[i].split(' ')[2].lower() + webregionnames.append(leftside+rightside) + except IndexError,ierr: + oneside=foldernames[i].split(' ')[0].lower() + webregionnames.append(oneside) + pass +import foldercreating as fdc +basicfilename="" + +print clc.bold+"*************************************************************************************************************" +print clc.bold+"* Welcome ! *"+clc.endc +print clc.bold+"* With this script, you will be able to download gpx,trk and kml traces for hitchiking on the Reunion Isle. *"+clc.endc +print clc.bold+"*************************************************************************************************************" +zonechoice=io.regioninput() +zoneptr=zonechoice-1 +maptype=io.mapfileinput() +MAIL=io.loginmail() +PSW=io.loginpass() + + + +if maptype==1: + basicfilename="f.gpx" +elif maptype==2: + basicfilename="f.trk" +elif maptype==3: + basicfilename="f.kml" + +fdc.mainfolder() +if zonechoice == 10: + fdc.mkallfolder(MAIL,PSW,webregionnames,foldernames,maptype,basicfilename) +else: + fdc.mkfolder(MAIL,PSW,webregionnames,foldernames,maptype,zoneptr,basicfilename) + + + + |