file_name = "langs.html" p = os.path.join("scripts", file_name) open(p, "w").write(s) if blog_dir(): p = os.path.join(blog_dir(), file_name) open(p, "w").write(s) def gen_html(): prefs = gen_settingsstructs.GlobalPrefs inside = gen_struct(prefs) s = html_tmpl.replace("%INSIDE%", inside) file_name = "settings" + g_version + ".html" p = os.path.join("scripts", file_name) open(p, "w").write(s) if blog_dir(): p = os.path.join(blog_dir(), file_name) open(p, "w").write(s) # also save the latest version as settings.html so that there is a # permament version we can link from from docs that is independent of # program version number p = os.path.join(blog_dir(), "settings.html") open(p, "w").write(s) if __name__ == "__main__": util2.chdir_top() gen_langs_html() gen_html() gen_settingsstructs.main()
file_name = "langs.html" p = os.path.join("scripts", file_name) open(p, "w").write(s) if blog_dir() is not None: p = os.path.join(blog_dir(), file_name) open(p, "w").write(s) def gen_html(): prefs = gen_settingsstructs.GlobalPrefs inside = gen_struct(prefs) s = html_tmpl.replace("%INSIDE%", inside) print("g_version: '%s'\n", g_version) s = s.replace("%VER%", str(g_version)) file_name = "settings" + g_version + ".html" p = os.path.join("scripts", file_name) open(p, "w").write(s) if blog_dir() is not None: p = os.path.join(blog_dir(), file_name) open(p, "w").write(s) # also save the latest version as settings.html so that there is a # permament version we can link from from docs that is independent of # program version number p = os.path.join(blog_dir(), "settings.html") open(p, "w").write(s) if __name__ == "__main__": util2.chdir_top() gen_langs_html() gen_html() gen_settingsstructs.main()