Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate using PyConfig to amend sys.path #211

Open
SwooshyCueb opened this issue Jul 18, 2024 · 0 comments
Open

Investigate using PyConfig to amend sys.path #211

SwooshyCueb opened this issue Jul 18, 2024 · 0 comments

Comments

@SwooshyCueb
Copy link
Member

At present, we append iRODS's config directory to sys.path using the interpreter:

std::string exec_str = "import sys\nsys.path.append('" + etc_irods_path.generic_string() + "')";

Let's investigate doing this via PyConfig instead:
https://docs.python.org/3/library/sys_path_init.html#embedded-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant