소스 검색

Fixed packpanda bug

rdb 17 년 전
부모
커밋
0830c2e565
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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):
     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)):