Browse Source

fix check for python packages

Kyle P Davis 8 years ago
parent
commit
2701c02ec7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gimmes/_python_pkg

+ 1 - 1
gimmes/_python_pkg

@@ -4,7 +4,7 @@ set -o errexit -o pipefail
 gimme python
 
 PKG=${0##*/}
-if ! has "$PKG"; then
+if ! has "$PKG" && ! python -c "import $PKG" &>/dev/null; then
 	if [[ "$OS" = "Darwin" ]]; then
 		mkdir -p "$PYTHONPATH"
 		easy_install -d "$PYTHONPATH" "$PKG"