conftest.py 332 B

1234567891011
  1. """
  2. Ensure the local gpustack package is imported before any installed ones.
  3. """
  4. import os
  5. import sys
  6. # Prepend the repository root to sys.path so that the local gpustack module is used
  7. repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
  8. if repo_root not in sys.path:
  9. sys.path.insert(0, repo_root)