Skip to content

Commit

Permalink
flake8: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 13, 2020
1 parent 09840ff commit 14f6caf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions aslo4/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from jinja2 import FileSystemLoader

from .bundle.bundle import Bundle
from .constants import HTML_TEMPLATE, CHANGELOG_HTML_TEMPLATE, \
from .constants import CHANGELOG_HTML_TEMPLATE, \
NEW_FEATURE_HTML_TEMPLATE
from .constants import SITEMAP_HEADER
from .constants import SITEMAP_URL
Expand Down Expand Up @@ -225,6 +225,7 @@ class SaaSBuild:
"""
The helper object to quickly create bundles and generate html web pages
"""

def __init__(
self,
list_activities=False,
Expand Down Expand Up @@ -722,8 +723,9 @@ def generate_web_page(
# information
debug("[STATIC][{}] Generating static HTML".format(
bundle.get_name()))
output_html_file_name_path = os.path.join(output_dir, 'app',
'{}.html'.format(bundle.get_bundle_id()))
output_html_file_name_path = os.path.join(
output_dir, 'app', '{}.html'.format(
bundle.get_bundle_id()))
# write the html file to specified path
debug("[STATIC][{}] Writing static HTML".format(bundle.get_name()))
read_parse_and_write_template(
Expand Down Expand Up @@ -808,7 +810,9 @@ def unpack_static(self, extract_dir):
shutil.copytree(_dir, extract_dir, symlinks=True,
ignore_dangling_symlinks=True, dirs_exist_ok=True)

for i in ('browserconfig.xml', 'manifest.json', 'README.md', 'LICENSE', 'favicon.ico'):
for i in ('browserconfig.xml',
'manifest.json', 'README.md',
'LICENSE', 'favicon.ico'):
_file = os.path.join(args.pull_static_css_js_html, i)
_extract_file = os.path.join(extract_dir, i)
shutil.copyfile(_file, _extract_file, follow_symlinks=True)
Expand All @@ -822,4 +826,3 @@ def unpack_static(self, extract_dir):
html_template_path=_file,
html_output_path=_extract_file
)

0 comments on commit 14f6caf

Please sign in to comment.