()
| 151 | |
| 152 | |
| 153 | def _guess_pycache_prefix(): |
| 154 | env_val = _probe(_os.environ, 'PYTHONPYCACHEPREFIX') |
| 155 | if env_val: |
| 156 | return _s(env_val) |
| 157 | |
| 158 | path, tail = _os.getcwd(), 'start' |
| 159 | |
| 160 | while tail: |
| 161 | guidence_file = _path_join(path, '.pycache.path') |
| 162 | if _path_isfile(guidence_file): |
| 163 | return _s(file_bytes(guidence_file)) |
| 164 | |
| 165 | path, tail = _path_split(path) |
| 166 | |
| 167 | |
| 168 | Y_PYTHON_SOURCE_ROOT = _get_source_root() |
no test coverage detected