diff options
-rw-r--r-- | environment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/environment.py b/environment.py index 5f0702b..c5b51f6 100644 --- a/environment.py +++ b/environment.py @@ -1194,7 +1194,8 @@ end program prog return ['-o', outputname] def can_compile(self, src): - if src.lower().endswith('.f95'): + suffix = os.path.splitext(src)[1].lower() + if suffix == '.f' or suffix == '.f95': return True return False |