comparison build_website.py @ 50:78f3f79c911b

mathieui: Add the CSS files.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 23 May 2020 20:49:53 +0200
parents d3b943ac148f
children 010b905a74d4
comparison
equal deleted inserted replaced
49:d3b943ac148f 50:78f3f79c911b
78 filename = path.join(target_dir, file_to_localize) 78 filename = path.join(target_dir, file_to_localize)
79 with open(filename, 'w') as out: 79 with open(filename, 'w') as out:
80 out.write(rendered) 80 out.write(rendered)
81 for static_resource in static: 81 for static_resource in static:
82 if path.isdir(static_resource): 82 if path.isdir(static_resource):
83 copytree(static_resource, target_dir, dirs_exist_ok=True) 83 copytree(static_resource, path.join(target_dir, static_resource), dirs_exist_ok=True)
84 else: 84 else:
85 copy(static_resource, target_dir) 85 copy(static_resource, target_dir)
86 86
87 if __name__ == '__main__': 87 if __name__ == '__main__':
88 if len(sys.argv) == 1: 88 if len(sys.argv) == 1: