Fix path pip in some Linux distributions
This commit is contained in:
parent
b0fa677be2
commit
ea9881bdd3
|
@ -103,8 +103,6 @@ class Controllers(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
def _cmd_pip(self, args):
|
def _cmd_pip(self, args):
|
||||||
# ~ cmd = '{} {}'.format(PIP, args)
|
|
||||||
# ~ if app.IS_WIN:
|
|
||||||
cmd = '"{}" -m pip {}'.format(self.path_python, args)
|
cmd = '"{}" -m pip {}'.format(self.path_python, args)
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
@ -317,9 +315,9 @@ class ZAZPip(unohelper.Base, XJobExecutor):
|
||||||
dialog.add_control(args)
|
dialog.add_control(args)
|
||||||
dialog.center(dialog.lbl_python, y=25)
|
dialog.center(dialog.lbl_python, y=25)
|
||||||
|
|
||||||
cmd = PIP + ' -V'
|
# ~ cmd = PIP + ' -V'
|
||||||
if app.IS_WIN:
|
# ~ if app.IS_WIN:
|
||||||
cmd = '"{}" -m pip -V'.format(path_python)
|
cmd = '"{}" -m pip -V'.format(path_python)
|
||||||
label = app.run(cmd, True)
|
label = app.run(cmd, True)
|
||||||
exists_pip = True
|
exists_pip = True
|
||||||
if not label:
|
if not label:
|
||||||
|
|
Loading…
Reference in New Issue