mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
hack/markdown-preprocess: allow to be executed from any dir
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -8,8 +8,11 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
script_dir = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
man_dir = os.path.join(script_dir,"../docs/source/markdown")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.chdir("docs/source/markdown")
|
os.chdir(man_dir)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
raise Exception("Please invoke me from the base repo dir")
|
raise Exception("Please invoke me from the base repo dir")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user