mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] autopep8
This commit is contained in:
parent
1e95a5d738
commit
218029b628
1 changed files with 4 additions and 4 deletions
|
@ -12,10 +12,10 @@ import os
|
||||||
|
|
||||||
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
THIS_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
ACTIONSMAP_FILE = THIS_SCRIPT_DIR + '/../data/actionsmap/yunohost.yml'
|
ACTIONSMAP_FILE = THIS_SCRIPT_DIR + '/../data/actionsmap/yunohost.yml'
|
||||||
OUTPUT_DIR ="output/"
|
OUTPUT_DIR = "output/"
|
||||||
|
|
||||||
# creates output directory
|
# creates output directory
|
||||||
os.system("mkdir "+ OUTPUT_DIR )
|
os.system("mkdir " + OUTPUT_DIR)
|
||||||
|
|
||||||
|
|
||||||
# man page of yunohost
|
# man page of yunohost
|
||||||
|
@ -37,7 +37,7 @@ with open(ACTIONSMAP_FILE, 'r') as stream:
|
||||||
ACTIONS_STR = '"{}"'.format(' '.join(ACTIONS))
|
ACTIONS_STR = '"{}"'.format(' '.join(ACTIONS))
|
||||||
ACTIONS_DICT[domain] = ACTIONS_STR
|
ACTIONS_DICT[domain] = ACTIONS_STR
|
||||||
for action in ACTIONS:
|
for action in ACTIONS:
|
||||||
#print("yunohost", domain, action)
|
# print("yunohost", domain, action)
|
||||||
cmd = "sudo help2man \" yunohost " + domain + " " + action + " --help \" -o " + OUTPUT_DIR + "yunohost_" + domain+ "_" + action
|
cmd = "sudo help2man \" yunohost " + domain + " " + action + " --help \" -o " + OUTPUT_DIR + "yunohost_" + domain + "_" + action
|
||||||
print(cmd)
|
print(cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
Loading…
Add table
Reference in a new issue