MCPcopy Create free account
hub / github.com/MITK/MITK / Up

Function Up

Modules/PythonHelper/src/mitkPythonHelper.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace
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

Callers 1

GetHomePathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected