#!/usr/bin/env python
""" Global launcher for the web server that displays the graphical web
interface.
"""

from __future__ import with_statement, absolute_import, print_function
from os.path import abspath
import sys

# assumes the standard distribution paths
PACKAGE_NAME = 'pytomo'
PACKAGE_DIR = abspath(sys.path[0])

if PACKAGE_DIR not in sys.path:
    sys.path.append(PACKAGE_DIR)

from pytomo import webpage

#from pytomo import config_pytomo
#config_pytomo.LOG_FILE = '-'

def main():
    'Program wrapper'
    webpage.main()

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