Merge pull request #847 from mihalicyn/fix_custom_config_path_handling

Properly pass configSearchPaths to a Driver constructor
This commit is contained in:
Evan Lezar 2025-01-14 16:03:40 +01:00 committed by GitHub
commit b6d360fbbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,6 +97,7 @@ func New(opts ...Option) (Interface, error) {
root.WithLogger(l.logger), root.WithLogger(l.logger),
root.WithDriverRoot(l.driverRoot), root.WithDriverRoot(l.driverRoot),
root.WithLibrarySearchPaths(l.librarySearchPaths...), root.WithLibrarySearchPaths(l.librarySearchPaths...),
root.WithConfigSearchPaths(l.configSearchPaths...),
) )
if l.nvmllib == nil { if l.nvmllib == nil {
var nvmlOpts []nvml.LibraryOption var nvmlOpts []nvml.LibraryOption