mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
hack/markdown-preprocess: allow to be executed from any dir
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
031b7dec71
commit
65fb90165a
1 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue