~jstys-z/helioviewer.org/client5

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
Helioviewer Database Installation Tool

Last Updated: 2012/04/23

TODO 01/17/2010:
* Let user specify dbname
* Add clarification regarding which username is expected and what it's used for
* Udpate graphical installer to reflect changes to text installer
"""
import sys
from helioviewer import init_logger

def main():
    '''Main application access point'''
    init_logger("install.log")

    try:
        import PyQt4
        import helioviewer.installer.gui
        helioviewer.installer.gui.install()
    except Exception as e:
        from helioviewer.installer.console import HelioviewerConsoleInstaller
        app = HelioviewerConsoleInstaller()

if __name__ == '__main__':
    sys.exit(main())