Fix path pip in some Linux distributions

This commit is contained in:
Mauricio Baeza 2020-01-02 22:23:24 -06:00
parent b0fa677be2
commit ea9881bdd3
1 changed files with 3 additions and 5 deletions

View File

@ -103,8 +103,6 @@ class Controllers(object):
return
def _cmd_pip(self, args):
# ~ cmd = '{} {}'.format(PIP, args)
# ~ if app.IS_WIN:
cmd = '"{}" -m pip {}'.format(self.path_python, args)
return cmd
@ -317,9 +315,9 @@ class ZAZPip(unohelper.Base, XJobExecutor):
dialog.add_control(args)
dialog.center(dialog.lbl_python, y=25)
cmd = PIP + ' -V'
if app.IS_WIN:
cmd = '"{}" -m pip -V'.format(path_python)
# ~ cmd = PIP + ' -V'
# ~ if app.IS_WIN:
cmd = '"{}" -m pip -V'.format(path_python)
label = app.run(cmd, True)
exists_pip = True
if not label: