taotoolkit 1.0.5__tar.gz → 1.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taotoolkit
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: Tao ToolKit
5
5
  Author-email: taotaoli <taotaoli@asrmicro.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "taotoolkit"
7
- version = "1.0.5"
7
+ version = "1.0.7"
8
8
  description = "Tao ToolKit"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -940,8 +940,8 @@ class CamDvt(asrCamOp):
940
940
  fullpath1 = os.path.join(outPath, ch1)
941
941
  newfile0 = os.path.join(outPath, str(posCode) + "_L.vrf")
942
942
  newfile1 = os.path.join(outPath, str(posCode) + "_R.vrf")
943
- renameFile(newfile0, fullpath0)
944
- renameFile(newfile1, fullpath1)
943
+ renameFile(fullpath0, newfile0)
944
+ renameFile(fullpath1, newfile1)
945
945
  else:
946
946
  print("抓取vrf失败")
947
947
  sys.exit()
@@ -200,6 +200,9 @@ def removeAnyContainStr(string: str, subStringList: list, matchCase=True) -> Lis
200
200
 
201
201
 
202
202
  def renameFile(old_path: str, new_path: str) -> None:
203
+ logd("Rename file:", old_path, "to", new_path)
204
+ if os.path.exists(new_path):
205
+ os.remove(new_path)
203
206
  os.rename(old_path, new_path)
204
207
 
205
208
 
@@ -947,7 +947,7 @@ class asrCamOp(DevOp):
947
947
  newfile = os.path.join(outPath, str(vrfName))
948
948
  from .tao_common import renameFile
949
949
 
950
- renameFile(newfile, fullpath)
950
+ renameFile(fullpath,newfile)
951
951
  else:
952
952
  eExit("抓取vrf失败")
953
953
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taotoolkit
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: Tao ToolKit
5
5
  Author-email: taotaoli <taotaoli@asrmicro.com>
6
6
  License-Expression: MIT
File without changes
File without changes