#!/usr/bin/env python
#
# $Id: mathtables 4 2005-11-25 03:46:09Z psanchez $
#
# Copyright 2005, Pedro I. Sanchez (psanchez@colcan.biz)
#
#     This computer program is released under the
#         GNU GENERAL PUBLIC LICENSE Version 2
#              (See the file COPYING)
#

import sys
import os

MAIN_GLADE = 'main.glade'

try:
    BASE_DIR='src'
    sys.path.append(os.path.join(os.getcwd(), BASE_DIR))
    from modules import gui
    print 'Using relative directory structure'
except ImportError:
    import mathtables
    from mathtables.modules import gui
    BASE_DIR= mathtables.__path__[0]

def main():
    app = gui.mathTable(BASE_DIR+'/glade/'+MAIN_GLADE)
    app.start()

if __name__ == "__main__":
    main()

