Created
October 23, 2016 11:11
-
-
Save snaga/8b66f8e42fd449afb6b3b5dbe37284dd to your computer and use it in GitHub Desktop.
pd.sh
This file contains hidden or 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/sh | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <python file>" | |
exit 0 | |
fi | |
M=`echo $1 | sed 's/.py//'` | |
echo $M | |
python -c "import $M;help($M)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment