diff --git a/README.md b/README.md index 243b0dc..d2ef8fe 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Many scripts are based heavily on get.pimoroni.com scripts! ## Python Scripts -We are in the process of converting our Shell Scripts to Python. Instructions for running specific scripts are available in the [Adafruit Learning System](https://learn.adafruit.com/). Here are the general setup instructions. +Our installer scripts are written in Python. Instructions for running specific scripts are available in the [Adafruit Learning System](https://learn.adafruit.com/). Here are the general setup instructions. ### Dependencies @@ -18,18 +18,18 @@ We are in the process of converting our Shell Scripts to Python. Instructions fo ### Prepare your system -To install the dependencies for the python scripts, run the following commands: +To install the dependencies for the Python scripts, run the following commands: ```bash -sudo apt-get install python3-pip -sudo pip3 install --upgrade click -sudo pip3 install --upgrade setuptools -sudo pip3 install --upgrade adafruit-python-shell +sudo apt-get install python3-pip python3-venv +python -m venv env --system-site-packages +source env/bin/activate +pip3 install --upgrade setuptools adafruit-python-shell click ``` -Then to run the python script, type the following replacing "scriptname.py" with the actual script name: +Then to run the Python script, type the following replacing "scriptname.py" with the actual script name: ```bash -sudo python3 scriptname.py +sudo -E env PATH=$PATH python3 scriptname.py ``` ## Old Shell Scripts diff --git a/arcade-bonnet.sh b/converted_shell_scripts/arcade-bonnet.sh similarity index 100% rename from arcade-bonnet.sh rename to converted_shell_scripts/arcade-bonnet.sh diff --git a/i2c.sh b/converted_shell_scripts/i2c.sh similarity index 100% rename from i2c.sh rename to converted_shell_scripts/i2c.sh diff --git a/install_wm8960.sh b/converted_shell_scripts/install_wm8960.sh similarity index 100% rename from install_wm8960.sh rename to converted_shell_scripts/install_wm8960.sh diff --git a/pi-eyes.sh b/converted_shell_scripts/pi-eyes.sh similarity index 100% rename from pi-eyes.sh rename to converted_shell_scripts/pi-eyes.sh diff --git a/read-only-fs.sh b/converted_shell_scripts/read-only-fs.sh similarity index 100% rename from read-only-fs.sh rename to converted_shell_scripts/read-only-fs.sh diff --git a/retrogame.sh b/converted_shell_scripts/retrogame.sh similarity index 100% rename from retrogame.sh rename to converted_shell_scripts/retrogame.sh diff --git a/rgb-matrix.sh b/converted_shell_scripts/rgb-matrix.sh similarity index 100% rename from rgb-matrix.sh rename to converted_shell_scripts/rgb-matrix.sh diff --git a/rtc.sh b/converted_shell_scripts/rtc.sh similarity index 100% rename from rtc.sh rename to converted_shell_scripts/rtc.sh diff --git a/spectro.sh b/converted_shell_scripts/spectro.sh similarity index 100% rename from spectro.sh rename to converted_shell_scripts/spectro.sh diff --git a/voice_bonnet.sh b/converted_shell_scripts/voice_bonnet.sh similarity index 100% rename from voice_bonnet.sh rename to converted_shell_scripts/voice_bonnet.sh