diff --git a/tren.py b/tren.py index 359e014..484d40c 100755 --- a/tren.py +++ b/tren.py @@ -8,7 +8,7 @@ PROGNAME = "tren.py" BASENAME = PROGNAME.split(".py")[0] PROGENV = BASENAME.upper() -RCSID = "$Id: tren.py,v 1.137 2010/02/02 23:20:01 tundra Exp $" +RCSID = "$Id: tren.py,v 1.138 2010/02/03 01:04:08 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -297,6 +297,11 @@ # We can load the first two right away since they're based # only on the target names provided on the command line + i=0 + while i < len(targs): + targs[i] = os.path.abspath(targs[i]) + i += 1 + alpha = targs[:] alpha.sort() self.SortViews = {ORDERBYCMDLINE : targs, ORDERBYALPHA : alpha} @@ -325,14 +330,13 @@ # Populate the data structures with each targets' stat information - for t in targs: + for fullname in targs: try: - fullname = os.path.abspath(t) - basename = os.path.basename(t) + basename = os.path.basename(fullname) stats = os.stat(fullname) except (IOError, OSError) as e: - ErrorMsg(eFILEOPEN % (t, e.args[1])) + ErrorMsg(eFILEOPEN % (fullname, e.args[1])) sys.exit(1) # Store fullname, basename, and stat info for this file @@ -384,9 +388,9 @@ del SeqTypes - # End of '__ini__()' + ##### # Debug Dump ##### @@ -825,6 +829,9 @@ targs.DumpObj() +for target in targs.SortViews[ORDERBYCMDLINE]: + print target + # Release the target container if we created one del targs