update 2016-11-10 b1
1. merged unused encoder for irext
This commit is contained in:
@@ -15,12 +15,12 @@ for root, dirs, files in os.walk(sys.argv[1]):
|
||||
remotePath = sys.argv[2]
|
||||
fileType2 = remotePath.split('.')
|
||||
if cmp(fileType2[-1], 'bin') == 0:
|
||||
prottype = fileType2[0].split('#')
|
||||
print(prottype[0])
|
||||
protocolType = fileType2[0].split('#')
|
||||
print(protocolType[0])
|
||||
print(fileType[0])
|
||||
if cmp(prottype[0].split('/')[-1], fileType[0]) == 0:
|
||||
outname = remotePath.split('#')
|
||||
binary = open(sys.argv[3] + "/ykir_"+outname[0].split('/')[-1]+"_"+outname[1], 'wb')
|
||||
if cmp(protocolType[0].split('/')[-1], fileType[0]) == 0:
|
||||
outName = remotePath.split('#')
|
||||
binary = open(sys.argv[3] + "/irda_" + outName[0].split('/')[-1] + "_" + outName[1], 'wb')
|
||||
prot_file = open(root+i, "rb")
|
||||
remote_file = open(remotePath, "rb")
|
||||
binary.write(prot_file.read())
|
||||
@@ -29,5 +29,3 @@ for root, dirs, files in os.walk(sys.argv[1]):
|
||||
prot_file.close()
|
||||
remote_file.close()
|
||||
print remotePath
|
||||
print
|
||||
print
|
||||
|
||||
Reference in New Issue
Block a user