未验证 提交 19d99491 编写于 作者: wafwerar's avatar wafwerar 提交者: GitHub

[TD-14331]<fix>: util/dnodes.py win error. (#11158)

上级 855990ee
...@@ -262,6 +262,8 @@ class TDDnode: ...@@ -262,6 +262,8 @@ class TDDnode:
if ("packaging" not in rootRealPath): if ("packaging" not in rootRealPath):
paths.append(os.path.join(root, tool)) paths.append(os.path.join(root, tool))
break break
if (len(paths) == 0):
return ""
return paths[0] return paths[0]
def start(self): def start(self):
...@@ -274,7 +276,7 @@ class TDDnode: ...@@ -274,7 +276,7 @@ class TDDnode:
taosadapterBinPath = self.getPath("taosadapter") taosadapterBinPath = self.getPath("taosadapter")
if (taosadapterBinPath == ""): if (taosadapterBinPath == ""):
tdLog.exit("taosAdapter not found!") tdLog.info("taosAdapter not found!")
else: else:
tdLog.info("taosAdapter found: %s" % taosadapterBinPath) tdLog.info("taosAdapter found: %s" % taosadapterBinPath)
...@@ -344,11 +346,11 @@ class TDDnode: ...@@ -344,11 +346,11 @@ class TDDnode:
if (binPath == ""): if (binPath == ""):
tdLog.exit("taosd.exe not found!") tdLog.exit("taosd.exe not found!")
else: else:
tdLog.info("taosd.exe found: %s" % bnPath) tdLog.info("taosd.exe found: %s" % binPath)
taosadapterBinPath = self.getPath("taosadapter.exe") taosadapterBinPath = self.getPath("taosadapter.exe")
if (taosadapterBinPath == ""): if (taosadapterBinPath == ""):
tdLog.exit("taosAdapter.exe not found!") tdLog.info("taosAdapter.exe not found!")
else: else:
tdLog.info("taosAdapter.exe found in %s" % taosadapterBuildPath) tdLog.info("taosAdapter.exe found in %s" % taosadapterBuildPath)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册