From fc1c852d9263fc43f27792f38a8e68674e944629 Mon Sep 17 00:00:00 2001 From: Waishnav Date: Fri, 8 Jul 2022 21:37:57 +0530 Subject: updating install | updating bin according to new function names --- src/bin/watcher | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) mode change 100755 => 100644 src/bin/watcher (limited to 'src/bin/watcher') diff --git a/src/bin/watcher b/src/bin/watcher old mode 100755 new mode 100644 index 2d4551e..d2392cd --- a/src/bin/watcher +++ b/src/bin/watcher @@ -1,10 +1,9 @@ #!/usr/bin/python - import os import sys sys.path.insert(0, "/usr/share/Watcher/") import watch_log as x -from colored_text import Color +from commands import Color import commands as cmd def help_option(): @@ -23,7 +22,7 @@ try: if arg == "-ds" or arg == "--day-summary": cmd.daily_summary() elif arg == "-ws" or arg == "--week-summary": - os.popen("python3 /usr/share/Watcher/week_analysis.py") + cmd.week_summary() elif arg == "-h" or arg == "--help": help_option() @@ -31,7 +30,7 @@ try: print("Log creations started... \nif you wanna stop it, use keyboard-shortcut (Ctrl+Shift+C)") x.log_creation() elif arg == "--version": - print("Version: 1.0") + print("Version: 1.2") else: print(Color.RED("Wrong")+" [OPTION] choosen. Have a look at the Options!!\n") print(Color.YELLOW("OPTIONS")) -- cgit v1.2.3