captn3m0 / pystitcher

pystitcher stitches your PDF files together, generating nice customizable bookmarks for you using a declarative markdown file as input
https://pypi.org/project/pystitcher/
MIT License
390 stars 10 forks source link

Fix current working directory hack #14

Open captn3m0 opened 3 years ago

captn3m0 commented 3 years ago

Currently, we switch our CWD to the markdown file directory, and don't reset it back. Playing around with chdir is bad and causes issues.

Fix this to instead use paths relative from the markdown file directory.