Skip to content

Instantly share code, notes, and snippets.

@snaga
Created October 23, 2016 11:11
Show Gist options
  • Save snaga/8b66f8e42fd449afb6b3b5dbe37284dd to your computer and use it in GitHub Desktop.
Save snaga/8b66f8e42fd449afb6b3b5dbe37284dd to your computer and use it in GitHub Desktop.
pd.sh
#!/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