获取虚拟环境下的pip @author baozi <202-02-22> @param: vpath ( str ): 虚拟环境位置 @return str : pip 位置
(self, vpath)
| 343 | return project_conf |
| 344 | |
| 345 | def _get_vp_pip(self, vpath): |
| 346 | """获取虚拟环境下的pip |
| 347 | @author baozi <202-02-22> |
| 348 | @param: |
| 349 | vpath ( str ): 虚拟环境位置 |
| 350 | @return str : pip 位置 |
| 351 | """ |
| 352 | if os.path.exists('{}/bin/pip'.format(vpath)): |
| 353 | return '{}/bin/pip'.format(vpath) |
| 354 | else: |
| 355 | return '{}/bin/pip3'.format(vpath) |
| 356 | |
| 357 | def _get_vp_python(self, vpath): |
| 358 | """获取虚拟环境下的python解释器 |
no test coverage detected