Skip to content
Snippets Groups Projects
Commit a52bc1a0 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: black

parent 1662102d
No related branches found
No related tags found
No related merge requests found
...@@ -64,8 +64,7 @@ ...@@ -64,8 +64,7 @@
"\t\t:language: python\n" "\t\t:language: python\n"
"\t\t:lines: %s-%s\n" "\t\t:lines: %s-%s\n"
"\t\t:emphasize-lines: %s\n" "\t\t:emphasize-lines: %s\n"
% % (
(
class_name, class_name,
"-" * len(class_name), "-" * len(class_name),
line, line,
......
...@@ -332,8 +332,8 @@ ...@@ -332,8 +332,8 @@
sphinxodoo_addons_path = [] sphinxodoo_addons_path = []
addon_dirs = set( addon_dirs = set(
os.path.dirname(path) os.path.dirname(path) for path in c.get("odoo_scripts", "modules").split()
for path in c.get("odoo_scripts", "modules").split()) )
for line in addon_dirs: for line in addon_dirs:
sphinxodoo_addons_path.append(os.path.join(superproject_path, line)) sphinxodoo_addons_path.append(os.path.join(superproject_path, line))
...@@ -24,10 +24,11 @@ ...@@ -24,10 +24,11 @@
def main(): def main():
module = os.path.basename(os.path.dirname(os.path.dirname( module = os.path.basename(
os.path.realpath(__file__)))) os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
)
d = load_information_from_description_file(module) d = load_information_from_description_file(module)
with open("manifest", "w") as out: with open("manifest", "w") as out:
manifest_content = ( manifest_content = (
d["description"] d["description"]
if "description" in d if "description" in d
...@@ -29,9 +30,12 @@ ...@@ -29,9 +30,12 @@
d = load_information_from_description_file(module) d = load_information_from_description_file(module)
with open("manifest", "w") as out: with open("manifest", "w") as out:
manifest_content = ( manifest_content = (
d["description"] d["description"]
if "description" in d if "description" in d
else d["summary"] if "summary" in d else "") else d["summary"]
if "summary" in d
else ""
)
out.write(manifest_content) out.write(manifest_content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment