diff options
author | Steven Knight <knight@baldmt.com> | 2005-08-11 13:16:20 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-08-11 13:16:20 (GMT) |
commit | 33f2e8d10b3f0334ab37ffb72bc4a282221dade6 (patch) | |
tree | a33979bbdff3c760313ae8c17f5bdb74eb8e41bf /src/engine/SCons/Tool/fortran.py | |
parent | fc4d126d2bf4ef98b4ca552e8a15c8ce77b16191 (diff) | |
download | SCons-33f2e8d10b3f0334ab37ffb72bc4a282221dade6.zip SCons-33f2e8d10b3f0334ab37ffb72bc4a282221dade6.tar.gz SCons-33f2e8d10b3f0334ab37ffb72bc4a282221dade6.tar.bz2 |
Look up Fortran modules relative to . (Craig Scott)
Diffstat (limited to 'src/engine/SCons/Tool/fortran.py')
-rw-r--r-- | src/engine/SCons/Tool/fortran.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/fortran.py b/src/engine/SCons/Tool/fortran.py index 180c811..d559ac8 100644 --- a/src/engine/SCons/Tool/fortran.py +++ b/src/engine/SCons/Tool/fortran.py @@ -78,9 +78,10 @@ def _fortranEmitter(target, source, env): modules = SCons.Util.unique(modules) # Convert module name to a .mod filename suffix = env.subst('$FORTRANMODSUFFIX') + moddir = env.subst('$FORTRANMODDIR') modules = map(lambda x, s=suffix: string.lower(x) + s, modules) for m in modules: - target.append(env.fs.File(m)) + target.append(env.fs.File(m, moddir)) return (target, source) def FortranEmitter(target, source, env): |