From: Vincent Le Gallic Date: Mon, 8 Apr 2013 01:26:18 +0000 (+0200) Subject: renommage de today-server en today_server X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=4f02e7921995656a95d60ad07985bf1fc57f7856;p=today.git renommage de today-server en today_server --- diff --git a/today.py b/today.py index 503cf50..477fdfa 100755 --- a/today.py +++ b/today.py @@ -26,7 +26,7 @@ class Config(object): #: Serveur distant où aller récupérer les checks self.distant_server = "pimeys" #: path de today-server.py sur le serveur distant - self.path_today_server = "/home/vincent/scripts/today/today-server.py" + self.path_today_server = "/home/vincent/scripts/today/today_server.py" #: Fichier contenant les anniversaires self.birthdays_file = "birthdays.txt" #: Fichier contenant les évènements à venir @@ -199,7 +199,7 @@ def update_xkcd(newid): def check_all(): """Vérifie si il y a des derniers trucs non lus/vus.""" cmd = "%s whatsup" % (config.path_today_server,) - proc = subprocess.Popen(["ssh", config.distant_server, cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc = subprocess.Popen(["ssh", config.distant_server, cmd], stdout=subprocess.PIPE) out, err = proc.communicate() news = json.loads(out) seen = get_last_seen()