- Much nicer naming for the files.

This commit is contained in:
ccremers 2004-10-15 14:46:23 +00:00
parent 622b28520e
commit 7247335e5b

View File

@ -28,15 +28,14 @@ print "#"
def getline (inputfile): def getline (inputfile):
return string.strip(inputfile.readline()) return string.strip(inputfile.readline())
def removespdl (str):
return string.replace(str,".spdl","")
def makefilepart (tuple): def makefilepart (tuple):
rt = count + "-" rt = count + "-"
namelist = string.split (tuple) namelist = string.split (tuple)
tocome = len (namelist)
for name in namelist: for name in namelist:
rt = rt + name rt = rt + "[" + removespdl(name) + "]"
tocome = tocome - 1
if tocome > 0:
rt = rt + "-"
return rt return rt
def makefileline (tuple): def makefileline (tuple):
@ -68,3 +67,5 @@ while line:
inp.close() inp.close()
print "#" print "#"
print "# ", lines, " lines processed." print "# ", lines, " lines processed."
# TODO Add code to clean up the mess: delete all files of zero length.