예제 #1
0
def main():
    import pyssn
    import sys
    from pyssn.utils.misc import get_parser

    parser = get_parser()
    args = parser.parse_args()
    if args.noQt4:
        pyssn.config.INSTALLED['Qt4'] = False

    if pyssn.config.INSTALLED['Qt4']:
        from pyssn.qt.pyssn_qt import main
        sys.exit(main())
    else:
        from pyssn.core.spectrum import main
        sys.exit(main())
예제 #2
0
def main():
    import pyssn
    import sys
    from pyssn.utils.misc import get_parser

    parser = get_parser()
    args = parser.parse_args()
    if args.noQt:
        pyssn.config.INSTALLED['Qt4'] = False
        pyssn.config.INSTALLED['Qt5'] = False

    if pyssn.config.INSTALLED['Qt4'] or pyssn.config.INSTALLED['Qt5']:
        from pyssn.qt.pyssn_qt import main
        sys.exit(main())
    else:
        from pyssn.core.spectrum import main
        sys.exit(main())
예제 #3
0
#!/usr/bin/env python


def main():
    import pyssn
    import sys
    from pyssn.utils.misc import get_parser

    parser = get_parser()
    args = parser.parse_args()
    if args.noQt:
        pyssn.config.INSTALLED['Qt4'] = False
        pyssn.config.INSTALLED['Qt5'] = False

    if pyssn.config.INSTALLED['Qt4']:
        from pyssn.qt.pyssn_qt import main
        sys.exit(main())
    elif pyssn.config.INSTALLED['Qt5']:
        from pyssn.qt5.pyssn_qt5 import main
        sys.exit(main())
    else:
        from pyssn.core.spectrum import main
        sys.exit(main())


if __name__ == '__main__':
    main()
예제 #4
0
#!/usr/bin/env python

def main():
    import pyssn
    import sys
    from pyssn.utils.misc import get_parser

    parser = get_parser()
    args = parser.parse_args()
    if args.noQt4:
        pyssn.config.INSTALLED['Qt4'] = False

    if pyssn.config.INSTALLED['Qt4']:
        from pyssn.qt.pyssn_qt import main
        sys.exit(main())
    else:
        from pyssn.core.spectrum import main
        sys.exit(main())
    
if __name__ == '__main__':
    main()