Skip to content

Commit 50004b1

Browse files
author
Gareth Aneurin Tribello
committed
Added command to remove all bck files generated by plumed
1 parent e440fd7 commit 50004b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

PlumedToHTML/PlumedToHTML.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pathlib
66
import zipfile
77
import warnings
8+
import glob
89
from lxml import etree
910
from io import StringIO
1011
from bs4 import BeautifulSoup
@@ -104,6 +105,7 @@ def test_plumed( executible, filename, header=[], printjson=False, jsondir="./"
104105
with open(outfile,"w") as stdout:
105106
with open(errtxtfile,"w") as stderr:
106107
with cd(run_folder):
108+
for bkpf in glob.glob("bck.*") : os.remove(bkpf)
107109
plumed_out = subprocess.run(cmd, text=True, stdout=stdout, stderr=stderr )
108110
# write header and preamble to errfile
109111
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.93',
9+
version='0.94',
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)