Spaces:
Build error
Build error
File size: 382 Bytes
e0ef1bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Strings together css files in this folder and exports to `../styles.css`
import os
css_filepaths = [f for f in os.listdir() if f.endswith(".css")]
css_filepaths.remove('file.css')
css_filepaths.insert(0, 'file.css')
css = ""
for filepath in css_filepaths:
with open(filepath, 'r') as file:
css += file.read()
with open("../styles.css", 'w') as f:
f.write(css) |