createComposite.py 460 B

12345678910111213141516171819
  1. import os
  2. import os.path
  3. def createComposite():
  4. filesToOmit = (
  5. "physx_composite.cxx",
  6. "physxTemplate.cxx",
  7. )
  8. compositeFile = file( "physx_composite.cxx", "w" )
  9. compositeFile.write( "\n" )
  10. for filename in os.listdir( os.getcwd() ):
  11. if filename.endswith( ".cxx" ) and (filename not in filesToOmit):
  12. compositeFile.write( '#include "%s"\n' % filename )
  13. if __name__ == "__main__":
  14. createComposite()