Commit d132f7d4cb7c6a9a52adaab99d9f09c5da4d7104
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 | 70 | """ |
| 71 | 71 | # Set ctbin tool |
| 72 | 72 | ctbin = "../src/ctbin/ctbin" |
| 73 | - noout = " >/dev/null" | |
| 73 | + if os.system("type "+ctbin) != 0: | |
| 74 | + ctbin = "ctbin" | |
| 74 | 75 | |
| 75 | 76 | # Setup ctbin command |
| 76 | 77 | cmd = ctbin+' inobs="'+self._events_name+'"'+ \ | ... | ... |