Skip to content

Instantly share code, notes, and snippets.

@HarryCutts
Last active December 19, 2015 10:29
Show Gist options
  • Save HarryCutts/5940357 to your computer and use it in GitHub Desktop.
Save HarryCutts/5940357 to your computer and use it in GitHub Desktop.
Python file runner bash script
#!/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