diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:07:58 +0200 |
| commit | 967be9e750221ab2ab783f95df79bb26d290a45e (patch) | |
| tree | 6802900a5e975f9f68b169f0f503f040056d6952 /ero1/start_dev.py | |
Diffstat (limited to 'ero1/start_dev.py')
| -rw-r--r-- | ero1/start_dev.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ero1/start_dev.py b/ero1/start_dev.py new file mode 100644 index 0000000..464766c --- /dev/null +++ b/ero1/start_dev.py @@ -0,0 +1,42 @@ +# This file contains the main logic and execution flow, the goal of this file +# is to create the graphs and call our functions on it +import parameters as params +import sys + +from src.helper.debug_printer import debug_print +from src.helper.main_parcours import main_parcours + + +# variables globales +debug_mode = False +reversed_legend = False +routes_mode = False + +# Démarrage du programme +# Si le mode debug est activé, on affiche les messages de debug +# on affiche à la fin le graphe généré +if __name__ == "__main__": + if "-d" in sys.argv: # mode debug + debug_mode = True + sys.argv.remove("-d") + if "-rl" in sys.argv: # legende inversée (gauche par défaut) + reversed_legend = True + sys.argv.remove("-rl") + if "-r" in sys.argv: # mode routes + routes_mode = True + sys.argv.remove("-r") + + debug_print("Debug mode : activé", debug_mode) + + if len(sys.argv) > 1: + PLACE_NAME = sys.argv[1] + else: + PLACE_NAME = params.DEFAULT_PLACE_NAME + + debug_print("Arrondissement selectionné : " + PLACE_NAME, debug_mode) + + debug_print("==============================================", debug_mode) + + main_parcours(debug_mode, PLACE_NAME, reversed_legend) + + debug_print("==============================================", debug_mode)
\ No newline at end of file |
