-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
JLOptions.julia_bin
incorrect when embedding
#18437
Comments
IMHO, this seems like the right thing to do. |
@yuyichao, except that at one point in the past I seem to recall @vtjnash saying that that field was supposed to be the path to the julia executable for the purpose of spawning other julia processes ala distributed computing. That may or may not be the case, however, if it is, in fact, meant to represent the path of the executable, My real motive in opening this issue, however, is less about the interpretation/calculation of this field and more to lay more solid groundwork for justifying some tweaks to the way that julia does path-guessing in |
No. We are not using it for that purpose (AFAIK no one is using it). |
@yuyichao I didn't think we were. I do know for a fact that there is not a single reference to that field (outside where it is defined and set) anywhere in the julia repo. Of course, in that case, it begs the question as to whether that field should even exist. What I'm really doing, though, is preempting at least one reason that was given at one point for not preferring tweaks to path-guessing that work for both the usual and the embedding cases. |
What I know there's multiple ways to query the current executable name, libuv also provides the wrapper for that, which is probably why it is used. Is there an easy way to figure out the full path of the current library? |
In short, yes. |
For instance, inserting
into the embedding example yields in part:
the embedding executable, and not the julia exectuable.
The text was updated successfully, but these errors were encountered: