自动生成 unity_build.cpp,unity_build.cpp,# home.zhenl


# [email protected]# auto unity buildimport osimport sysdef walk(path) :      for filename in os.listdir(path) :        abspath = path + '\\\\' + filename        if os.path.isdir(abspath) :              walk(abspath)         elif filename.endswith('.cpp') and filename != 'unity_build.cpp' :                     print '#include "' + abspath[2:] + '"'sys.stdout = open('./unity_build.cpp', 'w')walk(os.curdir)#该片段来自于http://byrx.net

评论关闭