diff options
Diffstat (limited to 'hack')
-rwxr-xr-x | hack/markdown-preprocess | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hack/markdown-preprocess b/hack/markdown-preprocess index 578615845..6d2675cc4 100755 --- a/hack/markdown-preprocess +++ b/hack/markdown-preprocess @@ -8,8 +8,11 @@ import os import sys def main(): + script_dir = os.path.abspath(os.path.dirname(__file__)) + man_dir = os.path.join(script_dir,"../docs/source/markdown") + try: - os.chdir("docs/source/markdown") + os.chdir(man_dir) except FileNotFoundError: raise Exception("Please invoke me from the base repo dir") |