![]() |
OGS
|
|
Classes | |
| struct | PipeCloser |
| Custom deleter for FILE handles from popen. More... | |
Functions | |
| std::optional< std::string > | executeCommand (std::string_view command) |
| Executes a command and captures its stdout output using popen. | |
| std::optional< std::pair< int, int > > | getPythonVersionFromVenv (std::filesystem::path const &venv_path) |
| Gets Python version by executing the venv's python executable. | |
| std::filesystem::path | findSitePackagesPath (std::filesystem::path const &venv_path) |
| Finds site-packages path in the virtual environment. | |
| std::optional< std::string > ApplicationsLib::anonymous_namespace{ogs_embedded_python.cpp}::executeCommand | ( | std::string_view | command | ) |
Executes a command and captures its stdout output using popen.
Definition at line 55 of file ogs_embedded_python.cpp.
References DBUG(), and executeCommand().
Referenced by executeCommand(), and getPythonVersionFromVenv().
| std::filesystem::path ApplicationsLib::anonymous_namespace{ogs_embedded_python.cpp}::findSitePackagesPath | ( | std::filesystem::path const & | venv_path | ) |
Finds site-packages path in the virtual environment.
Definition at line 140 of file ogs_embedded_python.cpp.
References findSitePackagesPath(), getPythonVersionFromVenv(), and OGS_FATAL.
Referenced by findSitePackagesPath().
| std::optional< std::pair< int, int > > ApplicationsLib::anonymous_namespace{ogs_embedded_python.cpp}::getPythonVersionFromVenv | ( | std::filesystem::path const & | venv_path | ) |
Gets Python version by executing the venv's python executable.
Definition at line 81 of file ogs_embedded_python.cpp.
References DBUG(), executeCommand(), and getPythonVersionFromVenv().
Referenced by findSitePackagesPath(), and getPythonVersionFromVenv().