| 30 | namespace |
| 31 | { |
| 32 | fs::path Up(fs::path path, int levels) |
| 33 | { |
| 34 | while (levels-- > 0) |
| 35 | path = path.parent_path(); |
| 36 | |
| 37 | return path; |
| 38 | } |
| 39 | |
| 40 | // The Python interpreter inside a virtual environment. The layout differs by |
| 41 | // platform (Windows under Scripts/, POSIX under bin/); keeping it in one place |