This repository has been archived on 2023-10-03. You can view files and clone it, but cannot push or open issues or pull requests.

15 lines
382 B
Python
Raw Normal View History

import sys
import os
# Add our shipped Pillar SDK wheel to the Python path
if not any('pillar_sdk' in path for path in sys.path):
import glob
# TODO: gracefully handle errors when the wheel cannot be found.
my_dir = os.path.dirname(__file__)
pillar_wheel = glob.glob(os.path.join(my_dir, 'pillar_sdk*.whl'))[0]
sys.path.append(pillar_wheel)
import pillarsdk