From 47a2b549e7adaab134fd7977e319f87344741a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=AB=8B=E5=86=9B?= Date: Tue, 2 Feb 2021 11:39:04 +0800 Subject: [PATCH] doc: fix pip test description. --- README.md | 2 +- READMEcn.md | 2 +- scripts/test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 408970b..ac979aa 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ $ catkin_make ```bash cd ~/catkin_ws/src/myCobotROS -python3 scripts/test.py +python scripts/test.py ``` ## 2. Package Modules diff --git a/READMEcn.md b/READMEcn.md index bee04aa..68d0382 100644 --- a/READMEcn.md +++ b/READMEcn.md @@ -42,7 +42,7 @@ $ catkin_make ```bash cd ~/catkin_ws/src/myCobotROS -python3 scripts/test.py +python scripts/test.py ``` ## 2. 模块 diff --git a/scripts/test.py b/scripts/test.py index 53469aa..dc26831 100644 --- a/scripts/test.py +++ b/scripts/test.py @@ -5,7 +5,7 @@ from pymycobot.genre import Angle, Coord if __name__ == '__main__': port = subprocess.check_output(['echo -n /dev/ttyUSB*'], - shell=True) + shell=True).decode() mycobot = MyCobot(port) # port = subprocess.run(['echo -n /dev/ttyUSB*'],