mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Experimental; copy the whole 'direct' tree to 'built' to avoid the hacky __init__.py (which we can't use anymore because of the way the runtime is packaged)
This commit is contained in:
parent
16a549218d
commit
68f224ff08
@ -1389,21 +1389,13 @@ CreatePandaVersionFiles()
|
|||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
#
|
#
|
||||||
# Generate direct/__init__.py
|
# Copy the "direct" tree
|
||||||
#
|
#
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
DIRECTINIT="""
|
|
||||||
import os,sys
|
|
||||||
srcdir1 = os.path.join(__path__[0], 'src')
|
|
||||||
srcdir2 = os.path.join(__path__[0], '..', '..', 'direct', 'src')
|
|
||||||
if (os.path.isdir(srcdir1)): __path__[0] = srcdir1
|
|
||||||
elif (os.path.isdir(srcdir2)): __path__[0] = srcdir2
|
|
||||||
else: sys.exit("Cannot find the 'direct' tree")
|
|
||||||
"""
|
|
||||||
|
|
||||||
if (PkgSkip("PYTHON")==0):
|
if (PkgSkip("PYTHON")==0):
|
||||||
ConditionalWriteFile(GetOutputDir()+'/direct/__init__.py', DIRECTINIT)
|
CopyTree(GetOutputDir()+'/direct','direct/src')
|
||||||
|
ConditionalWriteFile(GetOutputDir()+'/direct/__init__.py', "")
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user