Last active
December 19, 2015 10:29
-
-
Save HarryCutts/5940357 to your computer and use it in GitHub Desktop.
Python file runner bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Choose the program to run:" | |
cd robot-sim | |
select FILENAME in *.py; | |
do | |
echo "Running $FILENAME ($REPLY):" | |
echo "---" | |
echo | |
python $FILENAME | |
echo | |
echo "---" | |
echo "$FILENAME finished. Press ENTER to close." | |
read | |
exit | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment