mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Be able to run the script from a distant folder
This commit is contained in:
parent
3550be63f2
commit
ccdd7e645d
1 changed files with 4 additions and 2 deletions
|
@ -8,10 +8,12 @@ adds `--help` at the end if one presses [tab] again.
|
|||
|
||||
author: Christophe Vuillot
|
||||
"""
|
||||
import os
|
||||
import yaml
|
||||
|
||||
ACTIONSMAP_FILE = 'yunohost.yml'
|
||||
BASH_COMPLETION_FILE = '../bash-completion.d/yunohost_completion'
|
||||
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
ACTIONSMAP_FILE = THIS_SCRIPT_DIR + '/yunohost.yml'
|
||||
BASH_COMPLETION_FILE = THIS_SCRIPT_DIR + '/../bash-completion.d/yunohost_completion'
|
||||
|
||||
with open(ACTIONSMAP_FILE, 'r') as stream:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue