msprev / panzer

pandoc + styles
BSD 3-Clause "New" or "Revised" License
160 stars 13 forks source link

Creates ~/.panzer even though using ---panzer-support #45

Closed dnebauer closed 6 years ago

dnebauer commented 6 years ago

I've moved the panzer configuration files from ~/.panzer to ~/.config/panzer. Even if I use the ---panzer-support option to specify ~/.config/panzer as the support directory (as per the Use instructions and #40), panzer insists on creating the ~/.panzer directory template anyway:

$ panzer ---panzer-support="/home/user/.config/panzer --to="html" --output="test.html" "test.md"
WARNING: default panzer support directory "/home/user/.panzer" not found
WARNING: create empty support directory "/home/user/.panzer"?
    Press Enter to continue...

Despite panzer's temporary obsession with ~/.panzer at the start of processing, it uses the nominated support directory for actual document processing.

Can this check for, and creation of, the default support directory be skipped when the ---panzer-support option is used?

msprev commented 6 years ago

Thank you for this bug report. I've pushed a fix now. Let me know if there are any problems!

dnebauer commented 6 years ago

Fix works great. Thanks.