Created
August 14, 2011 11:12
-
-
Save optixx/1144806 to your computer and use it in GitHub Desktop.
Concat css files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
def main(): | |
data = str() | |
for root, dirs, files in os.walk("."): | |
for file in files: | |
path = os.path.join(root,file) | |
print path | |
if path.endswith("css"): | |
data += open(path,"r").read() | |
open("out.ccs","w").write(data) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment