File: sascomp

package info (click to toggle)
sasmodels 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 15,888 kB
  • sloc: python: 25,392; ansic: 7,377; makefile: 149; sh: 61
file content (24 lines) | stat: -rwxr-xr-x 697 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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', 'build', 'lib'))
    if sasview:  # glob returns a list
        sys.path.insert(0, sasview[0])
    sys.path.insert(0, sasmodels)

    import sasmodels.compare
    sasmodels.compare.main(*sys.argv[1:])

if __name__ == "__main__":
    main()