#!/usr/bin/env python import sys import os import glob import logging logging.basicConfig(level=logging.INFO) def main(): sasmodels = os.path.dirname(os.path.realpath(__file__)) root = os.path.dirname(sasmodels) sasview=glob.glob(os.path.join(root, 'sasview', 'build', 'lib.*' )) sys.path.insert(0, os.path.join(root, 'bumps')) sys.path.insert(0, os.path.join(root, 'periodictable')) sys.path.insert(0, os.path.join(root, 'tinycc')) if sasview: # glob returns a list sys.path.insert(0, sasview[0]) sys.path.insert(0, sasmodels) import sasmodels.compare sasmodels.compare.main() if __name__ == "__main__": main()