Skip to content
Permalink
Browse files
Move psmove python module into venv to simplify starting up scripts.
  • Loading branch information
mbabinski-at-google committed Oct 5, 2017
1 parent 8c391c2 commit a62dc6f17a60d5eec5a7dcd1dfaf89002ce48722
Showing with 3 additions and 5 deletions.
  1. +1 −2 audio_tool.py
  2. +1 −2 joust.sh
  3. +1 −0 setup.sh
  4. +0 −1 tests
@@ -1,8 +1,7 @@
#!/home/pi/JoustMania/venv/bin/python3.6
import asyncio
import sys

sys.path.append('/home/pi/psmoveapi/build')

import piaudio


@@ -6,5 +6,4 @@ if [ $UID -ne 0 ]; then
fi

export HOME="/home/pi/JoustMania"
export PYTHONPATH="/home/pi/psmoveapi/build/"
/home/pi/JoustMania/venv/bin/python3.6 /home/pi/JoustMania/piparty.py
exec /home/pi/JoustMania/venv/bin/python3.6 /home/pi/JoustMania/piparty.py
@@ -63,6 +63,7 @@ setup() {
-DPSMOVE_BUILD_TRACKER:BOOL=ON \
-DPSMOVE_USE_PSEYE:BOOL=OFF
make -j4
cp /home/pi/psmoveapi/build/{psmove.py,_psmove.so} $VENV/lib/python3.6

#installs custom supervisor script for running joustmania on startup
sudo cp -r /home/pi/JoustMania/conf/supervisor/ /etc/
1 tests
@@ -1,6 +1,5 @@
#!/bin/bash

export HOME="/home/pi/JoustMania"
export PYTHONPATH="/home/pi/psmoveapi/build/"

exec $HOME/venv/bin/python3.6 -m unittest discover -s . -p '*_test.py'

0 comments on commit a62dc6f

Please sign in to comment.