Created
February 13, 2011 18:14
-
-
Save themartorana/824911 to your computer and use it in GitHub Desktop.
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
import subprocess, shlex | |
import os | |
def sprocketize(): | |
try: | |
import shlex, subprocess | |
js_path = os.path.abspath(os.path.join(os.getcwd(), '../content/js')) | |
sprocketize = "sprocketize -C %s -I hae -I vendor hae.js > %s/sprockets.js" % ( | |
js_path, | |
js_path | |
) | |
args = shlex.split(sprocketize) | |
p = subprocess.call(args, shell=True) | |
except Exception as ex: | |
print "Couldn't sprocketize" | |
print ex | |
if __name__ == '__main__': | |
sprocketize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment