Skip to content

Instantly share code, notes, and snippets.

@ericholscher
Created June 21, 2012 06:06
Show Gist options
  • Save ericholscher/2964128 to your computer and use it in GitHub Desktop.
Save ericholscher/2964128 to your computer and use it in GitHub Desktop.
import inspect
frame = inspect.currentframe()
name = inspect.getframeinfo(frame)[2]
func = globals()[name]
#import ipdb; ipdb.set_trace()
cmd = '!%s ' % string.lower(func.__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment