diff options
Diffstat (limited to 'foldercreating.py')
-rw-r--r-- | foldercreating.py | 71 |
1 files changed, 1 insertions, 70 deletions
diff --git a/foldercreating.py b/foldercreating.py index ea8fd24..a95c169 100644 --- a/foldercreating.py +++ b/foldercreating.py @@ -5,28 +5,9 @@ import time #global foldernames #(foldernames[0].split(' ')[0]+"-"+foldernames[0].split(' ')[2]).lower() => cirque-cilaos . ce formating sera pratique pour le site web - -foldernames=["Cirque de Cilaos","Cirque de Mafate","Cirque de Salazie","Est","Nord","Ouest","Sud","Volcan","Ailleurs","All"] -totalfolders=foldernames thehome=os.path.expanduser("~") thefolder="/Randopitons" -default_folder=thehome+thefolder -choice = 0 -maptype = 0 - -class colrs: - HEADER = '\033[95m' - OKBLUE = '\033[94m' - OKGREEN = '\033[92m' - WARNING = '\033[93m' - FAIL = '\033[91m' - ENDC = '\033[0m' - BOLD = '\033[1m' - UNDERLINE = '\033[4m' - -#def print colrs.FAIL+("Operating System error: {0}".format(e))+colrs.ENDC: - #print colrs.FAIL+("Operating System error: {0}".format(e))+colrs.ENDC - +default_folder=thehome+thefolder ##def dlmap(maptype,choice): # folderptr=choice-1 @@ -71,60 +52,10 @@ except SyntaxError: -print """\n Which zone you would want to download ? -1. Cirque de Cilaos (Cilaos' Circus) -2. Cirque de Mafate (Mafate's Circus) -3. Cirque de Salazie (Salazie's Circus) -4. Est (East) -5. Nord (North) -6. Ouest (West) -7. Sud (South) -8. Volcan (Volcano) -9. Ailleurs (Elsewhere) -10. All \n""" - - - ##================CHOSING CHOICE (heh)============== -while choice < 1 or choice > 10: - try: - choice = input("You must enter a number between 1 and 10. Your choice [Default is \"All\"]: ") - int(choice) - except (KeyboardInterrupt, SystemExit): - print colrs.WARNING+"\n\nProcess interrupted by CTRL+C or system."+colrs.ENDC - exit() - except SyntaxError: - choice = 10; - except NameError: - print "\nPlease enter a number between 1 and 10." - choice = 0 - #================DECLARING FOLDERNAMES============== - #================CHOSING MAPTYPE============== -print """\n Which map type you would want to download ? -1. gpx (GPS Exchange Format) -2. trk (CompeGPS Land Track File) -3. kml (Keyhole Markup Language)\n""" - -while maptype<1 or maptype>3: - try: - maptype = input("You must enter a number between 1 and 3. Your choice ? ") - int(maptype) - except (KeyboardInterrupt, SystemExit): - print colrs.WARNING+"\n\nProcess interrupted by CTRL+C or system."+colrs.ENDC - exit() - - - # raise - # time.sleep(3) - - #pass - - - - print "Program ended." |