-
Notifications
You must be signed in to change notification settings - Fork 104
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
feat: Incorporate "additional-dependency-dirs" #400
Conversation
I'm against managing environment variables out of the source code. |
ac2623a
to
74d1887
Compare
d277f13
to
6468f3b
Compare
std::wstring path_after; | ||
DWORD len = GetEnvironmentVariableW(PATH.c_str(), NULL, 0); | ||
if (len > 0) { | ||
path_after.resize(len); | ||
GetEnvironmentVariableW(PATH.c_str(), &path_after[0], len); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to change in this PR, but looks like this pattern of
- check size of env var
- resize local string
- write env var to string
is used at least 3 times - probably good to be a helper function in the future
What does the PR do?
Adds core support for a new "additional-dependency-dirs" configuration option that will add user-specified directories to the search path during backend loading.
Checklist
<commit_type>: <Title>
Commit Type:
Check the conventional commit type
box here and add the label to the github PR.
Related PRs:
Server: triton-inference-server/server#7707
[WIP]