Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (19 sloc) 766 Bytes
#!/usr/bin/env python
import sys, os
from subprocess import call
from distutils.sysconfig import get_python_lib
fabfile = get_python_lib() + "/"
if not os.path.exists(fabfile):
fabfile = fabfile.replace('/usr/lib/', '/usr/local/lib/')
if not os.path.exists(fabfile):
fabfile = __file__.replace('EGG-INFO/scripts/cook', '') + ''
if not os.path.exists(fabfile):
sys.exit("There was an installation error. Couldn't find, try reinstalling again")
args = ['fab', '-f', fabfile]
if len(sys.argv) > 1:
# Pass on arguments to fabric
sys.exit("No order given. Type 'cook -l' for a list of orders\n")
# Call fabric with the given arguments
Something went wrong with that request. Please try again.