From d6d10506e19f9ef5fcc7cd527995790534d3bec6 Mon Sep 17 00:00:00 2001 From: Jens Kadenbach Date: Wed, 23 Jul 2014 22:47:09 +0000 Subject: [PATCH] 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. --- mayan/apps/installation/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/installation/classes.py b/mayan/apps/installation/classes.py index 178b2b3e46..9b0aed1c8d 100644 --- a/mayan/apps/installation/classes.py +++ b/mayan/apps/installation/classes.py @@ -7,7 +7,7 @@ import os import sh try: - from sh import pip + pip = sh.Command('pip') PIP = True except sh.CommandNotFound: PIP = False