[fix] open file relatively from script location

This commit is contained in:
Laurent Peuch 2019-06-29 07:42:32 +02:00
parent 252e3157b7
commit b4be3389fa

View file

@ -16,7 +16,9 @@ from collections import OrderedDict
from jinja2 import Template
template = Template(open("./manpage.template").read())
base_path = os.path.split(os.path.realpath(__file__))[0]
template = Template(open(os.path.join(base_path, "manpage.template")).read())
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))