Skip to content

Instantly share code, notes, and snippets.

@4383
Last active May 3, 2019 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4383/52ef2f3c6f96ffa0e699b5f7000de41c to your computer and use it in GitHub Desktop.
Save 4383/52ef2f3c6f96ffa0e699b5f7000de41c to your computer and use it in GitHub Desktop.
scan python dependencies
cd /tmp
mkdir keystone
pipenv shell
pip install keystone
pypath=$(dirname $(which python) | sed 's/bin/lib/g')
grep -ri ${mypath} -e subprocess -exclude-dir="*/__pycache__" | grep import | more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment