File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,15 @@ virtualenvwrapper_derive_workon_home() {
9090 return 0
9191}
9292
93- # Verify that the WORKON_HOME directory exists
93+ # Check if the WORKON_HOME directory exists,
94+ # create it if it does not
95+ # seperate from creating the files in it because this used to just error
96+ # and maybe other things rely on the dir existing before that happens.
9497virtualenvwrapper_verify_workon_home () {
9598 if [ ! -d " $WORKON_HOME " ]
9699 then
97- [ " $1 " != " -q" ] && echo " ERROR : Virtual environments directory '$WORKON_HOME ' does not exist. Create it or set WORKON_HOME to an existing directory ." 1>&2
98- return 1
100+ [ " $1 " != " -q" ] && echo " NOTE : Virtual environments directory '$WORKON_HOME ' does not exist. Creating.. ." 1>&2
101+ mkdir $WORKON_HOME
99102 fi
100103 return 0
101104}
You can’t perform that action at this time.
0 commit comments