#! /usr/bin/env python """loadall.py: Load all the main packages in IRAF with verbose turned on $Id: loadall.py,v 1.1 2001/11/16 14:00:24 dencheva Exp $ """ import sys, traceback from pyraf import iraf iraf.setVerbose() def printcenter(s, length=70, char="-"): l1 = (length-len(s))/2 l2 = length-l1-len(s) print l1*char, s, l2*char ptried = {} npass = 0 ntotal = 0 plist = iraf.getPkgList() keepGoing = 1 while keepGoing and (ntotal