Commit d132f7d4cb7c6a9a52adaab99d9f09c5da4d7104

Authored by Jürgen Knödlseder
1 parent d4f4269c

Experimental check whether ctbin exists.

Showing 1 changed file with 2 additions and 1 deletions
test/test_ctbin.py
@@ -70,7 +70,8 @@ class Test(gammalib.GPythonTestSuite): @@ -70,7 +70,8 @@ class Test(gammalib.GPythonTestSuite):
70 """ 70 """
71 # Set ctbin tool 71 # Set ctbin tool
72 ctbin = "../src/ctbin/ctbin" 72 ctbin = "../src/ctbin/ctbin"
73 - noout = " >/dev/null" 73 + if os.system("type "+ctbin) != 0:
  74 + ctbin = "ctbin"
74 75
75 # Setup ctbin command 76 # Setup ctbin command
76 cmd = ctbin+' inobs="'+self._events_name+'"'+ \ 77 cmd = ctbin+' inobs="'+self._events_name+'"'+ \