def create_page(name, content, encoding='utf8'): sp = get_source_path(name) make_dirs(dirname(sp)) content = content.encode(encoding) create_file(sp, content, encoding=encoding)
def setup_function(f=None): make_dirs(SOURCE_DIR) make_dirs(BUILD_DIR)
def create_page(name, content, encoding='utf8'): sp = get_source_path(name) make_dirs(dirname(sp)) content = content create_file(sp, content, encoding=encoding)