From 3ed141f8c57962413402c650d81df11553e42df8 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 2 Jun 2021 21:02:46 +0000 Subject: Feh, just wire in tools/ prefix for now --- extract.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extract.py') diff --git a/extract.py b/extract.py index 368211c..f2f3147 100755 --- a/extract.py +++ b/extract.py @@ -53,7 +53,7 @@ def attachment_link(row): class Filter: - def __init__(self, filename = "filter.json"): + def __init__(self, filename = "tools/filter.json"): with open(filename) as f: filter = json.load(f) if not all(action in "-+" for action, pattern in filter): @@ -89,12 +89,13 @@ def main(): args = ap.parse_args() for dn in ("wiki", "pelican"): - shutil.rmtree(dn) + if os.path.exists(dn): + shutil.rmtree(dn) for dn in ("wiki", "pelican/content"): os.makedirs(dn) - os.link("pelicanconf.py", "pelican/pelicanconf.py") + os.link("tools/pelicanconf.py", "pelican/pelicanconf.py") wiki_to_markdown = trac2md.Trac2Markdown(args.source_url) -- cgit v1.2.3