Skip to content

Commit fe62e5c

Browse files
authored
Merge pull request #14 from CleoQc/master
Install autodetect libraries
2 parents 65ce2cf + d8dce52 commit fe62e5c

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

auto_detect_robot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,4 @@ def find_word(text, search):
307307
# Add control panel for the GoPiGo that is detected.
308308
for detection in detected_robot_list:
309309
# print("Remove Control Panel: " + detection)
310-
remove_control_panel(detection)
310+
remove_control_panel(detection)

install_script_tools.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ LIB=lib
1414
SCRIPT=script_tools
1515

1616
pushd $PIHOME > /dev/null
17-
result=${PWD##*/}
17+
result=${PWD##*/}
1818
# check if ~/Dexter exists, if not create it
1919
if [ ! -d $DEXTER ] ; then
2020
mkdir $DEXTER
2121
fi
2222
# go into $DEXTER
23-
cd $DEXTER
23+
cd $PIHOME/$DEXTER
2424

2525

2626
# check if /home/pi/Dexter/lib exists, if not create it
2727
if [ ! -d $LIB ] ; then
2828
mkdir $LIB
2929
fi
30-
cd $LIB
30+
cd $PIHOME/$DEXTER/$LIB
3131

3232
# check if /home/pi/Dexter/lib/Dexter exists, if not create it
3333
if [ ! -d $DEXTER ] ; then
3434
mkdir $DEXTER
3535
fi
36-
cd $DEXTER
36+
cd $PIHOME/$DEXTER/$LIB/$DEXTER
3737

3838

3939
# check if /home/pi/Dexter/lib/script_tools exists
@@ -43,8 +43,11 @@ if [ ! -d $SCRIPT ] ; then
4343
# clone the folder
4444
sudo git clone --quiet https://github.com/DexterInd/script_tools.git
4545
else
46-
cd $SCRIPT
46+
cd $PIHOME/$DEXTER/$LIB/$DEXTER/$SCRIPT
4747
sudo git pull --quiet
4848
fi
4949

50-
popd > /dev/null
50+
cd $PIHOME/$DEXTER/$LIB/$DEXTER/$SCRIPT
51+
sudo python autodetect_setup.py install
52+
53+
popd > /dev/null

0 commit comments

Comments
 (0)