mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
License & doc generator
This commit is contained in:
parent
f84011673a
commit
9a7e99ffc4
1 changed files with 4 additions and 4 deletions
|
@ -40,9 +40,9 @@ def main():
|
||||||
for category, category_params in action_map.items():
|
for category, category_params in action_map.items():
|
||||||
if 'category_help' not in category_params: category_params['category_help'] = ''
|
if 'category_help' not in category_params: category_params['category_help'] = ''
|
||||||
|
|
||||||
with open('yunohost_'+ category, 'r') as f:
|
with open('yunohost_'+ category +'.py', 'r') as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
with open('yunohost_'+ category, 'w') as f:
|
with open('yunohost_'+ category +'.py', 'w') as f:
|
||||||
in_block = False
|
in_block = False
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if re.search(r'^""" yunohost_'+ category, line):
|
if re.search(r'^""" yunohost_'+ category, line):
|
||||||
|
@ -87,9 +87,9 @@ def main():
|
||||||
help_lines.append(' """')
|
help_lines.append(' """')
|
||||||
help_lines.append('')
|
help_lines.append('')
|
||||||
|
|
||||||
with open('yunohost_'+ category, 'r') as f:
|
with open('yunohost_'+ category +'.py', 'r') as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
with open('yunohost_'+ category, 'w') as f:
|
with open('yunohost_'+ category +'.py', 'w') as f:
|
||||||
in_block = False
|
in_block = False
|
||||||
first_quotes = True
|
first_quotes = True
|
||||||
for line in lines:
|
for line in lines:
|
||||||
|
|
Loading…
Reference in a new issue