aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel <lionel.miquel46@gmail.com>2018-10-14 21:38:42 +0200
committerLionel <lionel.miquel46@gmail.com>2018-10-14 21:38:42 +0200
commitba91e0892c8a57a13bacb4d5d577940fc2793d20 (patch)
tree61d88a2fd1d27673e5ba0876e6ecadcc0a440518
parent8fd35574400834517db2a51e92eba970f614843e (diff)
downloadrandopitons-ba91e0892c8a57a13bacb4d5d577940fc2793d20.tar.gz
randopitons-ba91e0892c8a57a13bacb4d5d577940fc2793d20.zip
ayaaaa nous revoilĂ  mes amis
-rw-r--r--__init__.py0
-rw-r--r--colorcode.py34
-rw-r--r--main.py (renamed from init.py)2
3 files changed, 27 insertions, 9 deletions
diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/__init__.py
diff --git a/colorcode.py b/colorcode.py
index 8263420..b8debd5 100644
--- a/colorcode.py
+++ b/colorcode.py
@@ -1,9 +1,27 @@
#Simplified color codes here for error/warning/ok and the such.. messages
-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 endcolor(s):
+# print s+'\033[0m'
+#
+#def bold(s):
+# endcolor('\033[1m'+s)
+#
+#def header(s):
+# endcolor('\033[95m'+s)
+#
+#def okblue(s):
+# print '\033[94m'+endcolor(s)
+#
+#def okgreen(s):
+# print '\033[92m'+endcolor(s)
+#
+#def warning(s):
+# print '\033[93m'+endcolor(s)
+#
+#def fail(s):
+# print '\033[91m'+endcolor(s)
+#
+#def underline(s):
+# print '\033[4m'+endcolor(s)
+
+#bold("fancy shit man")
diff --git a/init.py b/main.py
index 1668f69..6c6e4d8 100644
--- a/init.py
+++ b/main.py
@@ -13,7 +13,7 @@ filetype=mapfileinput()
if filetype==1:
basicfilename="f.gpx"
-else if filetype==2:
+elif filetype==2:
basicfilename="f.trk"
else:
basicfilename="f.kml"