You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
332 B
12 lines
332 B
"""
|
|
Ensure the local gpustack package is imported before any installed ones.
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Prepend the repository root to sys.path so that the local gpustack module is used
|
|
repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
|
|
if repo_root not in sys.path:
|
|
sys.path.insert(0, repo_root)
|