mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Added support for .egg.pz
This commit is contained in:
parent
dfeb620b9d
commit
3ddc74ba7f
@ -221,8 +221,7 @@ if OPTIONS["bam"]:
|
|||||||
|
|
||||||
EGG2BAM=os.path.join(PANDA,"bin","egg2bam.exe")
|
EGG2BAM=os.path.join(PANDA,"bin","egg2bam.exe")
|
||||||
|
|
||||||
def egg2bam(file):
|
def egg2bam(file,bam):
|
||||||
bam = file[:-4]+'.bam'
|
|
||||||
present = os.path.exists(bam)
|
present = os.path.exists(bam)
|
||||||
if (present): bam = "packpanda-TMP.bam";
|
if (present): bam = "packpanda-TMP.bam";
|
||||||
cmd = 'egg2bam -noabs -ps rel -pd . "'+file+'" -o "'+bam+'"'
|
cmd = 'egg2bam -noabs -ps rel -pd . "'+file+'" -o "'+bam+'"'
|
||||||
@ -248,9 +247,11 @@ def py2pyc(file):
|
|||||||
|
|
||||||
def CompileFiles(file):
|
def CompileFiles(file):
|
||||||
if (os.path.isfile(file)):
|
if (os.path.isfile(file)):
|
||||||
if (string.lower(file[-4:])==".egg"):
|
if (string.endswith(".egg")):
|
||||||
egg2bam(file)
|
egg2bam(file, file[:-4]+'.bam')
|
||||||
elif (string.lower(file[-3:])==".py"):
|
elif (string.endswith(".egg.pz")):
|
||||||
|
egg2bam(file, file[:-7]+'.bam')
|
||||||
|
elif (string.endswith(".py")):
|
||||||
py2pyc(file)
|
py2pyc(file)
|
||||||
else: pass
|
else: pass
|
||||||
elif (os.path.isdir(file)):
|
elif (os.path.isdir(file)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user