taotoolkit 1.0.1__tar.gz → 1.0.2__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.2
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.2"
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,7 +654,7 @@ 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":
657
+ else:
658
658
  loge("windows unsupport")
659
659
  return
660
660
  else:
@@ -672,7 +672,7 @@ class asrCamOp(DevOp):
672
672
  splitCmd=False,
673
673
  )
674
674
  rCmd(f"adb -s {self.serial} forward --remove tcp:10000", showCmd=True, logLevel="info")
675
- elif sysVersion == "Windows":
675
+ else:
676
676
  self.resetNet()
677
677
  rCmd(f"adb -s {self.serial} forward --remove tcp:10000")
678
678
  rCmd("netsh interface portproxy reset", showRet=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taotoolkit
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Tao ToolKit
5
5
  Author-email: taotaoli <taotaoli@asrmicro.com>
6
6
  License-Expression: MIT
File without changes
File without changes