File to squeeze showbaseglobals

This commit is contained in:
Mark Mine 2003-06-20 00:12:46 +00:00
parent ed7b0fbeff
commit 860d0e0a89

View File

@ -0,0 +1,20 @@
import os
import pandaSqueezeTool
# Assumption: We will be squeezing the files from C:\Panda\lib\py
def getSqueezeableFiles():
directDir = os.getenv('DIRECT')
fileList = os.listdir(directDir + "\lib\py")
newFileList = []
for i in fileList:
if i[-4:] == ".pyc":
j = directDir + "/lib/py/" + i
newFileList.append(j)
return newFileList
def squeezePandaFiles():
l = getSqueezeableFiles()
pandaSqueezeTool.squeeze("panda", "ShowBaseGlobal", l)
squeezePandaFiles()