(local)
return html_files, local_js_dirs
Returns all HTML files in corehq, excluding partials
Returns all HTML files in corehq, excluding partials
Returns all HTML files in corehq excluding partials
def _get_html_files_and_local_js_dirs(local):
    """
    Returns all HTML files in corehq, excluding partials
    """
    prefix = os.path.join(ROOT_DIR, 'corehq')
    html_files = []
    local_js_dirs = set()  # a reference of js filenames, for use when copying optimized bundles back into corehq
    for root, dirs, files in os.walk(prefix):
        for name in files:
            if name.endswith(".html"):
                filename = os.path.join(root, name)
                if not re.search(r'/partials/', filename):
                    html_files.append(filename)
            elif local and name.endswith(".js"):
                local_js_dirs.add(_relative(root))
    return html_files, local_js_dirs
def _get_html_files_and_local_js_dirs ( local ) : prefix = os . path . join ( ROOT_DIR , 'corehq' ) html_files = [ ] local_js_dirs = set ( ) # a reference of js filenames, for use when copying optimized bundles back into corehq for root , dirs , files in os . walk ( prefix ) : for name in files : if name . endswith ( ".html" ) : filename = os . path . join ( root , name ) if not re . search ( r'/partials/' , filename ) : html_files . append ( filename ) elif local and name . endswith ( ".js" ) : local_js_dirs . add ( _relative ( root ) ) return html_files , local_js_dirs