summaryrefslogtreecommitdiffstats
path: root/test/F77FLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/F77FLAGS.py')
-rw-r--r--test/F77FLAGS.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/F77FLAGS.py b/test/F77FLAGS.py
index 5241e7b..e4d1f8c 100644
--- a/test/F77FLAGS.py
+++ b/test/F77FLAGS.py
@@ -179,12 +179,7 @@ test.fail_test(test.read('test6' + _exe) != "%s\nThis is a .FPP file.\n" % o)
-g77 = None
-for dir in string.split(os.environ['PATH'], os.pathsep):
- g = os.path.join(dir, 'g77' + _exe)
- if os.path.exists(g):
- g77 = g
- break
+g77 = test.where_is('g77')
if g77: