Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions | Variables
locate_pylib.cpp File Reference
#include "shambase/print.hpp"
#include "shambase/string.hpp"
#include "shambindings/pybindings.hpp"
#include "shamcmdopt/env.hpp"
#include <pybind11/embed.h>
#include <pybind11/stl.h>
#include <filesystem>
#include <optional>
#include <string>
#include <vector>
+ Include dependency graph for locate_pylib.cpp:

Go to the source code of this file.

Functions

const char * configure_time_pylib_paths ()
 Path to shamrock utils lib supplied at configure time.
 
std::vector< std::string > configure_time_pylib_paths_str ()
 
std::optional< std::string > shambindings::get_binary_path ()
 
std::optional< std::string > shambindings::is_path_valid_pylib (const std::string &path)
 
std::vector< std::string > shambindings::get_site_packages ()
 
std::string shambindings::locate_pylib_path (bool do_print)
 

Variables

std::optional< std::string > pylib_path_env_var = shamcmdopt::getenv_str("SHAMROCK_PYLIB_PATH")
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file locate_pylib.cpp.

Function Documentation

◆ configure_time_pylib_paths_str()

std::vector< std::string > configure_time_pylib_paths_str ( )

Definition at line 34 of file locate_pylib.cpp.

◆ get_binary_path()

std::optional< std::string > shambindings::get_binary_path ( )

Definition at line 40 of file locate_pylib.cpp.

◆ get_site_packages()

std::vector< std::string > shambindings::get_site_packages ( )

Definition at line 86 of file locate_pylib.cpp.

◆ is_path_valid_pylib()

std::optional< std::string > shambindings::is_path_valid_pylib ( const std::string &  path)

Definition at line 59 of file locate_pylib.cpp.

◆ locate_pylib_path()

std::string shambindings::locate_pylib_path ( bool  do_print)

Definition at line 92 of file locate_pylib.cpp.

Variable Documentation

◆ pylib_path_env_var

std::optional<std::string> pylib_path_env_var = shamcmdopt::getenv_str("SHAMROCK_PYLIB_PATH")

Definition at line 29 of file locate_pylib.cpp.