mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
File to squeeze showbaseglobals
This commit is contained in:
parent
ed7b0fbeff
commit
860d0e0a89
20
direct/src/showbase/pandaSqueezer.py
Normal file
20
direct/src/showbase/pandaSqueezer.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user