-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopyiOSCode.py
More file actions
38 lines (29 loc) · 896 Bytes
/
Copy pathCopyiOSCode.py
File metadata and controls
38 lines (29 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/python
# coding=utf-8
import sys
import zipfile
import shutil
import os
import os.path
import time, datetime
#include common.py
sys.path.append('./common')
import common
#主函数的实现
if __name__ =="__main__":
#入口参数:http://blog.csdn.net/intel80586/article/details/8545572
cmdPath = common.cur_file_dir()
count = len(sys.argv)
for i in range(1,count):
print ("参数", i, sys.argv[i])
if i==1:
cmdPath = sys.argv[i]
common.SetCmdPath(cmdPath)
# rootDir ="/Users/jaykie/sourcecode/cocos2dx/product/game/ertong"
rootAndroidStudio =common.GetRootDirAndroidStudio()
rootiOSXcode =common.GetRootDirXcode()
rootCode =common.GetRootDir()+"/ios_code_unity_moon"
#
targetDir = rootiOSXcode+"/Classes"
common.copyFiles(rootCode, targetDir)
print "copy_ios_code sucess"