自动生成 unity_build.cpp,unity_build.cpp,# home.zhenl
文章由Byrx.net分享于2019-03-23 08:03:39
自动生成 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
评论关闭