Get flux
Python package from path to flux
executable
#3665
Answered
by
dongahn
jameshcorbett
asked this question in
Q&A
Replies: 2 comments
-
ahn1@docker-desktop:/usr/src$ flux env | grep PYTHONPATH
export PYTHONPATH="/usr/lib/flux/python3.6" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jameshcorbett
-
How |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As part of my Parsl work I'm trying to drive a Flux instance remotely. If I could import the
flux
python package into my Python environment, I would be good to go. I can fetch the URI from the instance and connect to it that way. However, I don't know how to get the Python package. (I'm used to just having the package available because an encapsulating Flux instance has setPYTHONPATH
.) Is there a reliable way to find the path to the Python package, given a path to theflux
executable or some other reference point? Either by querying the executable or by following a certain predefined path.Worst case I can fetch both the URI and the path to the package from inside the instance, by checking
flux.__file__
.Beta Was this translation helpful? Give feedback.
All reactions