Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

            @wraps(func)
    def helper(*args, **kwds):
        return GeneratorContextManager(func(*args, **kwds))
        


src/c/o/cookiecutter-0.7.1/cookiecutter/generate.py   cookiecutter(Download)
from .exceptions import NonTemplatedInputDirException
from .find import find_template
from .utils import make_sure_path_exists, unicode_open, work_in
from .hooks import run_hook
 
 
    # run pre-gen hook from repo_dir
    with work_in(repo_dir):
        run_hook('pre_gen_project', project_dir)
 
    with work_in(template_dir):
 
    # run post-gen hook from repo_dir
    with work_in(repo_dir):
        run_hook('post_gen_project', project_dir)
 

src/c/o/cookiecutter-HEAD/cookiecutter/generate.py   cookiecutter(Download)
from .exceptions import NonTemplatedInputDirException
from .find import find_template
from .utils import make_sure_path_exists, unicode_open, work_in
from .hooks import run_hook
 
 
    # run pre-gen hook from repo_dir
    with work_in(repo_dir):
        run_hook('pre_gen_project', project_dir)
 
    with work_in(template_dir):
 
    # run post-gen hook from repo_dir
    with work_in(repo_dir):
        run_hook('post_gen_project', project_dir)
 

src/c/o/cookiecutter-0.7.1/cookiecutter/hooks.py   cookiecutter(Download)
import sys
 
from .utils import make_sure_path_exists, unicode_open, work_in
 
_HOOKS = [

src/c/o/cookiecutter-HEAD/cookiecutter/hooks.py   cookiecutter(Download)
import sys
 
from .utils import make_sure_path_exists, unicode_open, work_in
 
_HOOKS = [