From 2b288bc9e05e39fd58c6709636451beccc0da20b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 30 Jul 2019 16:53:27 -0400 Subject: [PATCH] add missing mode keyword for substitution --- lib/plumed/Install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plumed/Install.py b/lib/plumed/Install.py index e34fc9236a..d56b68b877 100644 --- a/lib/plumed/Install.py +++ b/lib/plumed/Install.py @@ -130,7 +130,7 @@ if os.path.isfile("Makefile.lammps.%s" % mode): print("Creating Makefile.lammps") plumedinc = os.path.join('liblink', 'plumed', 'src', 'lib', 'Plumed.inc.' + mode) lines1 = open(plumedinc, 'r').readlines() - if (platform.system() == 'Darwin' and os.path.isfile("Makefile.lammps.%s.macosx")): + if (platform.system() == 'Darwin' and os.path.isfile("Makefile.lammps.%s.macosx" % mode)): lines2 = open("Makefile.lammps.%s.macosx" % mode, 'r').readlines() else: lines2 = open("Makefile.lammps.%s" % mode, 'r').readlines()