File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,8 @@ function virtualenvwrapper_run_hook () {
76
76
# First anything that runs directly from the plugin
77
77
" $VIRTUALENVWRAPPER_PYTHON " -m virtualenvwrapper.hook_loader $HOOK_VERBOSE_OPTION " $@ "
78
78
# Now anything that wants to run inside this shell
79
- hook_name=" $1 "
80
- shift # get rid of hook name
81
79
" $VIRTUALENVWRAPPER_PYTHON " -m virtualenvwrapper.hook_loader $HOOK_VERBOSE_OPTION \
82
- --source " ${hook_name} _source " " $ @" >> $TMPDIR /$$ .hook
80
+ --source " $@ " >> $TMPDIR /$$ .hook
83
81
source $TMPDIR /$$ .hook
84
82
rm -f $TMPDIR /$$ .hook
85
83
}
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ def main():
62
62
if not args :
63
63
parser .error ('Please specify the hook to run' )
64
64
hook = args [0 ]
65
+ if options .sourcing :
66
+ hook += '_source'
65
67
66
68
for ep in pkg_resources .iter_entry_points ('virtualenvwrapper.%s' % hook ):
67
69
plugin = ep .load ()
You can’t perform that action at this time.
0 commit comments