diff --git a/plugins/ohos/src/ohos/testkit/kit.py b/plugins/ohos/src/ohos/testkit/kit.py index a32635e..ffcc3fc 100644 --- a/plugins/ohos/src/ohos/testkit/kit.py +++ b/plugins/ohos/src/ohos/testkit/kit.py @@ -257,7 +257,7 @@ class PushKit(ITestKit): self.pushed_file.append(os.path.join(dst, file)) else: if device.is_directory(dst): - dst = os.path.join(dst, os.path.basename(real_src_path)) + dst = os.path.normpath(os.path.join(dst, os.path.basename(real_src_path))) device.push_file("{}".format(real_src_path), "{}".format(dst)) LOG.debug("Push file finished from {} to {}".format(src, dst))