mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Move / rename / make script more robust w.r.t to path from which its called
This commit is contained in:
parent
934d15cb51
commit
1e95a5d738
1 changed files with 6 additions and 4 deletions
|
@ -9,7 +9,9 @@ Pages are stored in OUTPUT_DIR
|
||||||
import yaml
|
import yaml
|
||||||
import os
|
import os
|
||||||
|
|
||||||
ACTIONSMAP_FILE = '/usr/share/moulinette/actionsmap/yunohost.yml'
|
|
||||||
|
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
ACTIONSMAP_FILE = THIS_SCRIPT_DIR + '/../data/actionsmap/yunohost.yml'
|
||||||
OUTPUT_DIR ="output/"
|
OUTPUT_DIR ="output/"
|
||||||
|
|
||||||
# creates output directory
|
# creates output directory
|
Loading…
Add table
Reference in a new issue