If path is None, returns true if we are in a venv. Otherwise returns true only if we are in venv .
(path=None)
| 1550 | |
| 1551 | |
| 1552 | def venv_in(path=None): |
| 1553 | ''' |
| 1554 | If path is None, returns true if we are in a venv. Otherwise returns true |
| 1555 | only if we are in venv <path>. |
| 1556 | ''' |
| 1557 | if path: |
| 1558 | return os.path.abspath(sys.prefix) == os.path.abspath(path) |
| 1559 | else: |
| 1560 | return sys.prefix != sys.base_prefix |
| 1561 | |
| 1562 | |
| 1563 | def venv_run(args, path, recreate=True, clean=False): |
no outgoing calls
no test coverage detected
searching dependent graphs…