|
@@ -53,7 +53,7 @@ def attachment_link(row):
|
|
|
|
|
|
class Filter:
|
|
class Filter:
|
|
|
|
|
|
- def __init__(self, filename = "filter.json"):
|
|
|
|
|
|
+ def __init__(self, filename = "tools/filter.json"):
|
|
with open(filename) as f:
|
|
with open(filename) as f:
|
|
filter = json.load(f)
|
|
filter = json.load(f)
|
|
if not all(action in "-+" for action, pattern in filter):
|
|
if not all(action in "-+" for action, pattern in filter):
|
|
@@ -89,12 +89,13 @@ def main():
|
|
args = ap.parse_args()
|
|
args = ap.parse_args()
|
|
|
|
|
|
for dn in ("wiki", "pelican"):
|
|
for dn in ("wiki", "pelican"):
|
|
- shutil.rmtree(dn)
|
|
|
|
|
|
+ if os.path.exists(dn):
|
|
|
|
+ shutil.rmtree(dn)
|
|
|
|
|
|
for dn in ("wiki", "pelican/content"):
|
|
for dn in ("wiki", "pelican/content"):
|
|
os.makedirs(dn)
|
|
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)
|
|
wiki_to_markdown = trac2md.Trac2Markdown(args.source_url)
|
|
|
|
|