Skip to content

Commit 8ee1da6

Browse files
Gareth Aneurin TribelloGareth Aneurin Tribello
authored andcommitted
Changed line in PlumedToHTML so backup files are only deleted if they are actually files (and not directories)
1 parent c8a5283 commit 8ee1da6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

PlumedToHTML/PlumedToHTML.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def test_plumed( executible, filename, header=[], printjson=False, jsondir="./"
105105
with open(outfile,"w") as stdout:
106106
with open(errtxtfile,"w") as stderr:
107107
with cd(run_folder):
108-
for bkpf in glob.glob("bck.*") : os.remove(bkpf)
108+
for bkpf in glob.glob("bck.*") :
109+
if os.path.isfile(bkpf) : os.remove(bkpf)
109110
plumed_out = subprocess.run(cmd, text=True, stdout=stdout, stderr=stderr )
110111
# write header and preamble to errfile
111112
with open(errfile,"w") as stderr:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name='PlumedToHTML',
9-
version='0.100',
9+
version='0.101',
1010
author="Gareth Tribello",
1111
author_email="[email protected]",
1212
description="A package for creating pretified HTML for PLUMED files",

0 commit comments

Comments
 (0)