Fixed packpanda bug

This commit is contained in:
rdb 2008-09-26 05:51:23 +00:00
parent a169a1c4bd
commit 0830c2e565
1 changed files with 3 additions and 3 deletions

View File

@ -247,11 +247,11 @@ def py2pyc(file):
def CompileFiles(file):
if (os.path.isfile(file)):
if (string.endswith(".egg")):
if (file.endswith(".egg")):
egg2bam(file, file[:-4]+'.bam')
elif (string.endswith(".egg.pz")):
elif (file.endswith(".egg.pz")):
egg2bam(file, file[:-7]+'.bam')
elif (string.endswith(".py")):
elif (file.endswith(".py")):
py2pyc(file)
else: pass
elif (os.path.isdir(file)):