Skip to content

Instantly share code, notes, and snippets.

@mgedmin
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save mgedmin/8430ef3bcac58991a109 to your computer and use it in GitHub Desktop.

Select an option

Save mgedmin/8430ef3bcac58991a109 to your computer and use it in GitHub Desktop.
from fabric.api import task
from b import dothething
@task
def doit():
dothething()
def dothething():
print("THE THING")
$ fab -f a.py doit
THE THING

Done.
@misteritguru
Copy link

I didn't get a chance to thank you for putting my mind at ease -- I was doing the right thing, just in the wrong way - Thanks for the time you took to 'teach' me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment