source: sasmodels/sascomp @ 158cee4

core_shell_microgelscostrafo411magnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 158cee4 was 424fe00, checked in by Paul Kienzle <pkienzle@…>, 8 years ago

send sys.argv to main()

  • Property mode set to 100755
File size: 697 bytes
Line 
1#!/usr/bin/env python
2
3import sys
4import os
5import glob
6import logging
7logging.basicConfig(level=logging.INFO)
8
9def main():
10    sasmodels = os.path.dirname(os.path.realpath(__file__))
11    root = os.path.dirname(sasmodels)
12    sasview=glob.glob(os.path.join(root, 'sasview', 'build', 'lib*' ))
13    sys.path.insert(0, os.path.join(root, 'bumps'))
14    sys.path.insert(0, os.path.join(root, 'periodictable'))
15    sys.path.insert(0, os.path.join(root, 'tinycc', 'build', 'lib'))
16    if sasview:  # glob returns a list
17        sys.path.insert(0, sasview[0])
18    sys.path.insert(0, sasmodels)
19
20    import sasmodels.compare
21    sasmodels.compare.main(*sys.argv[1:])
22
23if __name__ == "__main__":
24    main()
Note: See TracBrowser for help on using the repository browser.