#! /usr/bin/env python """loadall.py: Load all the main packages in IRAF with verbose turned on $Id$ """ from __future__ import division # confidence high 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