Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dino committed Oct 20, 2021
1 parent 45f8df8 commit f34123c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ def run_command(cmd=""):
# run_command('sudo rm -r vilib/')
os.chdir('/home/pi/vilib')
run_command('git pull')
run_command('git clone https://github.com/sunfounder/vilib.git')
else:
run_command('git clone https://github.com/sunfounder/vilib.git')
os.chdir('/home/pi/vilib')
run_command('sudo python3 setup.py install')


# # install mediapipe-rpi3
# print("install mediapipe-rpi3 ...")
Expand All @@ -31,11 +32,11 @@ def run_command(cmd=""):

#install sunfounder_io
print("install sunfounder_io")
os.chdir('~')
if os.path.exists('~/sunfounder_io'):
os.chdir('/home/pi')
if os.path.exists('/home/pi/sunfounder_io'):
run_command('sudo rm -r sunfounder_io/')

run_command('git clone https://github.com/sunfounder/sunfounder-io.git')
os.chdir('~/sunfounder_io')
os.chdir('/home/pi/sunfounder_io')
run_command('sudo python3 setup.py install')

0 comments on commit f34123c

Please sign in to comment.