##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Lance Simms, Stanford University 2009
# PyRAF initialization
import sys, os
executable = sys.argv[0]
while os.path.islink(executable):
    executable = os.readlink(executable)
if os.path.split(executable)[1] == "pyraf":
    # this code executes only if this is a pyraf session
    from pyraf import iraf
    startup = iraf.osfn("~/python/pyraflogin.py")
    if os.path.exists(startup):
	print 'Loading pyraflogin.py'
        execfile(startup)
    del startup
del executable   # clean up namespace
