diff --git a/direct/src/directscripts/packpanda.py b/direct/src/directscripts/packpanda.py index 8b123108ca..532f578d5c 100755 --- a/direct/src/directscripts/packpanda.py +++ b/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)):