mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] open file relatively from script location
This commit is contained in:
parent
252e3157b7
commit
b4be3389fa
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ from collections import OrderedDict
|
||||||
|
|
||||||
from jinja2 import Template
|
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__))
|
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
Loading…
Add table
Reference in a new issue