Fix install script for renamed module
This fixes a problem where if "mycroft-core" was already in the virtualenv path file, but the actual name of the module wasn't, then the dev_setup.sh would succeed but start-mycroft.sh would fail with "No module named mycroft.version". Now dev_setup.sh actually checks for the $TOP variable in the virtualenv path, instead of hardcoded "mycroft-core". ==== Fixed Issues ==== Might fix issue #1419 for some rare cases. ==== Documentation Notes ==== Slightly improves the durability of the install script.pull/1514/head
parent
e0dd400cd0
commit
1fbae064cf
|
@ -176,7 +176,7 @@ if [ ! -f "$VENV_PATH_FILE" ] ; then
|
|||
echo "import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)" >> "$VENV_PATH_FILE" || return 1
|
||||
fi
|
||||
|
||||
if ! grep -q "mycroft-core" $VENV_PATH_FILE; then
|
||||
if ! grep -q "$TOP" $VENV_PATH_FILE; then
|
||||
echo "Adding mycroft-core to virtualenv path"
|
||||
sed -i.tmp '1 a\
|
||||
'"$TOP"'
|
||||
|
|
Loading…
Reference in New Issue