Skip to content

Commit

Permalink
Use site.getsitepackages()[-1] for both Windows and Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Dec 11, 2024
1 parent d2cbf27 commit 02c73c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
import site

# Get the site-packages path where nvidia packages are installed
site_packages_path = site.getsitepackages()[0]
site_packages_path = site.getsitepackages()[-1]
nvidia_path = os.path.join(site_packages_path, "nvidia")
# Traverse the directory and subdirectories
if platform.system() == "Windows": #
Expand Down

0 comments on commit 02c73c6

Please sign in to comment.