Browse Source

Fixed packpanda bug

rdb 17 years ago
parent
commit
0830c2e565
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/directscripts/packpanda.py

+ 3 - 3
direct/src/directscripts/packpanda.py

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