File: sascomp

package info (click to toggle)
sasmodels 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 16,488 kB
  • sloc: python: 26,277; ansic: 8,036; makefile: 150; sh: 63
file content (21 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python

import sys
import os
import logging
logging.basicConfig(level=logging.INFO)

def main():
    sasmodels = os.path.dirname(os.path.realpath(__file__))
    root = os.path.dirname(sasmodels)
    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'))
    sys.path.insert(0, os.path.join(root, 'sasview', 'src'))
    sys.path.insert(0, sasmodels)

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

if __name__ == "__main__":
    main()