From d132f7d4cb7c6a9a52adaab99d9f09c5da4d7104 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 15 Mar 2016 14:29:47 +0100 Subject: [PATCH] Experimental check whether ctbin exists. --- test/test_ctbin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_ctbin.py b/test/test_ctbin.py index 7bf3f92..1e04b2f 100755 --- a/test/test_ctbin.py +++ b/test/test_ctbin.py @@ -70,7 +70,8 @@ class Test(gammalib.GPythonTestSuite): """ # Set ctbin tool ctbin = "../src/ctbin/ctbin" - noout = " >/dev/null" + if os.system("type "+ctbin) != 0: + ctbin = "ctbin" # Setup ctbin command cmd = ctbin+' inobs="'+self._events_name+'"'+ \ -- libgit2 0.21.4