]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Create the python module if-thingy
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sun, 3 Jul 2011 07:07:53 +0000 (10:07 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sun, 3 Jul 2011 07:07:53 +0000 (10:07 +0300)
emerge-timer.py

index 55d49c6ec47b7e8c7f029074fa25ffbc6f32bf7f..d9d588e496c56aab8616f1a0bf48277eebf05d4c 100755 (executable)
@@ -221,8 +221,10 @@ def main():
     f.close()
 
 
-main()
+if __name__ == "__main__":
 
-print_times(times)
+    main()
 
-write_times(times)
+    print_times(times)
+
+    write_times(times)