From 0c672d4024bdb6688adef13fd729c460f7e0b462 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Tue, 12 Jun 2012 08:22:29 -0500 Subject: [PATCH] fixed newcron bug thanks niphlod --- VERSION | 2 +- gluon/newcron.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a1b4b59e..44b9d158 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-11 14:29:03) dev +Version 2.00.0 (2012-06-12 08:22:25) dev diff --git a/gluon/newcron.py b/gluon/newcron.py index 871f37a8..cb2f3c8f 100644 --- a/gluon/newcron.py +++ b/gluon/newcron.py @@ -224,7 +224,11 @@ class cronlauncher(threading.Thread): def run(self): import subprocess - proc = subprocess.Popen(self.cmd.split(), + if isinstance(self.cmd, (list,tuple)): + cmd = self.cmd + else: + cmd = self.cmd.split() + proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,