Remove magic import from sh module

Since the magic import "from sh import pip"
is harder to debug and has problems on some
systems, it is now substituted by a conventional
pip-command object creation.
This commit is contained in:
Jens Kadenbach
2014-07-23 22:47:09 +00:00
parent 83924f3f2e
commit d6d10506e1

View File

@@ -7,7 +7,7 @@ import os
import sh import sh
try: try:
from sh import pip pip = sh.Command('pip')
PIP = True PIP = True
except sh.CommandNotFound: except sh.CommandNotFound:
PIP = False PIP = False