-
Notifications
You must be signed in to change notification settings - Fork 694
Remove hardcoded path references #212
base: aiyprojects
Are you sure you want to change the base?
Conversation
Remove the assumed /home/pi/AIY-projects-python project path. This is easily done because of the previous cd call change the CWD to the project path. This changed is needed because of conflicting instructions in HACKING.md This resolves google#211
This would not work very well in the distant case where a user runs the install-deps.sh while in the home directory or anywhere else for that matter. Ideally we should not be assuming anything here. A better approach would be to hard code a path somewhere in the root of the repo and the use references to that everywhere. |
@ameer1234567890 look at line 32. Where the script is run from is irrelevant. The script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I've been trying to avoid assuming /home/pi as it breaks DietPi.
@@ -32,8 +32,7 @@ sudo pip3 install --upgrade pip virtualenv | |||
cd "${scripts_dir}/.." | |||
virtualenv --system-site-packages -p python3 env | |||
env/bin/pip install -r requirements.txt | |||
echo "/home/pi/AIY-projects-python/src" > \ | |||
/home/pi/AIY-projects-python/env/lib/python3.5/site-packages/aiy.pth | |||
echo "$(pwd)/src" > ./env/lib/python3.5/site-packages/aiy.pth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just saw the cd
above. Forget this comment :)
@protovist, shall we wait until after the next image release to merge this, just in case it breaks something? |
@RichardBronosky can you rebase with the latest changes we've submitted to the aiyprojects branch? Thanks! |
Remove the assumed /home/pi/AIY-projects-python project path. This is
easily done because of the previous cd call changes the CWD to the
project path. This change is needed because of conflicting instructions
in HACKING.md This resolves
#211