Commit bdfd2ff1f0020c22cbb08b24239c207e33b71960
1 parent
7d46d361
set PFILES environment variable
Showing
2 changed files
with
12 additions
and
0 deletions
test/test_ctatools.sh
| ... | ... | @@ -2,6 +2,11 @@ |
| 2 | 2 | # |
| 3 | 3 | # ctatools test script |
| 4 | 4 | # ==================================================================== |
| 5 | +PFILES=$PWD/../src/ctobssim | |
| 6 | +PFILES=$PWD/../src/ctbin:$PFILES | |
| 7 | +PFILES=$PWD/../src/ctselect:$PFILES | |
| 8 | +PFILES=$PWD/../src/ctlike:$PFILES | |
| 9 | +export PFILES | |
| 5 | 10 | |
| 6 | 11 | # |
| 7 | 12 | # Print Header | ... | ... |
test/test_python.py
| ... | ... | @@ -168,6 +168,13 @@ if __name__ == '__main__': |
| 168 | 168 | print "* ctatools Python interface testing *" |
| 169 | 169 | print "************************************" |
| 170 | 170 | |
| 171 | + # Set PFILES environment variable | |
| 172 | + pfiles = "../src/ctobssim:" | |
| 173 | + pfiles += "../src/ctbin:" | |
| 174 | + pfiles += "../src/ctselect:" | |
| 175 | + pfiles += "../src/ctlike:" | |
| 176 | + os.environ['PFILES'] = pfiles | |
| 177 | + | |
| 171 | 178 | # Remove any existing result files |
| 172 | 179 | list = [glob.glob("*.fits"), glob.glob("*.log"), glob.glob("*.xml")] |
| 173 | 180 | for files in list: | ... | ... |