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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user