PipInterface/Pip.py

changeset 6819
6c49d4ed077d
parent 6798
3985c1a67fa2
child 6828
bb6667ea9ae7
equal deleted inserted replaced
6818:961bfc3b68f1 6819:6c49d4ed077d
154 else: 154 else:
155 pip = "pip.conf" 155 pip = "pip.conf"
156 156
157 venvManager = e5App().getObject("VirtualEnvManager") 157 venvManager = e5App().getObject("VirtualEnvManager")
158 if venvManager.isGlobalEnvironment(venvName): 158 if venvManager.isGlobalEnvironment(venvName):
159 venvDirectory = self.__getUserConfig() 159 venvDirectory = os.path.dirname(self.getUserConfig())
160 else: 160 else:
161 venvDirectory = venvManager.getVirtualenvDirectory(venvName) 161 venvDirectory = venvManager.getVirtualenvDirectory(venvName)
162 162
163 if venvDirectory: 163 if venvDirectory:
164 config = os.path.join(venvDirectory, pip) 164 config = os.path.join(venvDirectory, pip)

eric ide

mercurial