taotoolkit 1.0.1__tar.gz → 1.0.4__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.1
3
+ Version: 1.0.4
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.1"
7
+ version = "1.0.4"
8
8
  description = "Tao ToolKit"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -56,7 +56,7 @@ class jenkinsTool:
56
56
  self.downloadPath = "/home/local/Downloads/jenkin" # 下载路径和解压路径
57
57
  self.extractPath = "/home/local/Downloads/jenkin"
58
58
  self.aimgTool = "aimgtool"
59
- elif sysVersion == "Windows":
59
+ else:
60
60
  self.downloadPath = r"D:\jenkin" # 下载路径和解压路径
61
61
  self.extractPath = r"D:\jenkin"
62
62
  self.aimgTool = "aimgtool.exe"
@@ -637,7 +637,7 @@ class jenkinsTool:
637
637
  cmd = ""
638
638
  if sysVersion == "Linux":
639
639
  cmd = f"./{self.aimgTool} download -t {finalCfg}"
640
- elif sysVersion == "Windows":
640
+ else:
641
641
  cmd = f"{self.aimgTool} download -t {finalCfg}"
642
642
  logi(cmd)
643
643
  oCmd(cmd)
@@ -542,7 +542,7 @@ class asrCamOp(DevOp):
542
542
  super().__init__(**kwargs)
543
543
  if sysVersion == "Linux":
544
544
  self.tuning_assistant = "tuning_assistant64.out"
545
- elif sysVersion == "Windows":
545
+ else:
546
546
  self.tuning_assistant = "tuning_assistant64.exe"
547
547
  self.soc = self.getASRDevice()
548
548
  self.lcdOnAndUnlock()
@@ -654,12 +654,10 @@ class asrCamOp(DevOp):
654
654
  out = rCmd("ifconfig")[0]
655
655
  ip = out.split("\n")[1].strip().split(" ")[1]
656
656
  logi(f"{ip} : 12218")
657
- elif sysVersion == "Windows":
658
- loge("windows unsupport")
659
- return
660
657
  else:
661
- loge(f"unsupport cmd in {sysVersion}")
658
+ loge("windows unsupport")
662
659
  return
660
+
663
661
  else:
664
662
  logi("ip connect off")
665
663
  if sysVersion == "Linux":
@@ -672,12 +670,10 @@ class asrCamOp(DevOp):
672
670
  splitCmd=False,
673
671
  )
674
672
  rCmd(f"adb -s {self.serial} forward --remove tcp:10000", showCmd=True, logLevel="info")
675
- elif sysVersion == "Windows":
673
+ else:
676
674
  self.resetNet()
677
675
  rCmd(f"adb -s {self.serial} forward --remove tcp:10000")
678
676
  rCmd("netsh interface portproxy reset", showRet=False)
679
- else:
680
- loge(f"unsupport cmd in {sysVersion}")
681
677
 
682
678
  def openCam(self, id=0):
683
679
  if id == 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taotoolkit
3
- Version: 1.0.1
3
+ Version: 1.0.4
4
4
  Summary: Tao ToolKit
5
5
  Author-email: taotaoli <taotaoli@asrmicro.com>
6
6
  License-Expression: MIT
File without changes
File without changes