Skip to content

Instantly share code, notes, and snippets.

@themartorana
Created February 13, 2011 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themartorana/824911 to your computer and use it in GitHub Desktop.
Save themartorana/824911 to your computer and use it in GitHub Desktop.
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