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