#!/usr/bin/env python

import sys
from socket import gethostname

planet = gethostname()
leonplanets = ['Earth', 'uranus', 'saturn']


if planet == 'zagll1':
    magpypath = '/home/rachel/Software/MagPyDev/magpy/trunk/src/'
else:
    magpypath = '/home/leon/Software/magpy-git/'

sys.path.insert(1,magpypath)

from magpy.gui.magpy_gui import MagPyApp

app = MagPyApp(0)
app.MainLoop()

#!/usr/bin/env python

import os
import sys

# run the MagPy GUI from a local source rather than from the installed version
magpypath = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..'))
sys.path.insert(1,magpypath)

from magpy.gui.magpy_gui import MagPyApp

app = MagPyApp(0)
app.MainLoop()

add current dir to sys.path