[英]Error in running a python script in command prompt
I am running the below line in command prompt with the below code but my script is not being initiated from pycharm
: 我正在使用以下代码在命令提示符下运行以下行,但是我的脚本未从pycharm
启动:
I am checking the directory where my script exists: 我正在检查脚本所在的目录:
K:\PycharmProjects\workshop-robot>dir
Volume in drive K is USER_SHARES
Volume Serial Number is 569B-2F04
Directory of K:\PycharmProjects\workshop-robot
28.07.2015 11:37 <DIR> .
28.07.2015 11:37 <DIR> ..
23.07.2015 10:12 <DIR> .idea
27.07.2015 17:37 837 Abbott.robot
24.07.2015 14:20 752 Allianz.robot
24.07.2015 16:08 748 diageo.robot
24.07.2015 16:08 756 freenet_ag.robot
24.07.2015 16:09 770 friesland_campina.robot
28.07.2015 11:37 209.277 log.html
28.07.2015 11:38 12.261 output.xml
28.07.2015 11:37 212.337 report.html
29.07.2015 17:45 <DIR> resources
28.07.2015 11:37 30.228 selenium-screenshot-1.png
28.07.2015 11:37 30.228 selenium-screenshot-10.png
28.07.2015 11:37 30.228 selenium-screenshot-2.png
28.07.2015 11:37 30.228 selenium-screenshot-3.png
28.07.2015 11:37 30.228 selenium-screenshot-4.png
28.07.2015 11:37 30.228 selenium-screenshot-5.png
28.07.2015 11:37 30.228 selenium-screenshot-6.png
28.07.2015 11:37 30.228 selenium-screenshot-7.png
28.07.2015 11:37 30.228 selenium-screenshot-8.png
28.07.2015 11:37 30.228 selenium-screenshot-9.png
24.07.2015 12:03 760 testcase.robot
19 File(s) 740.778 bytes
4 Dir(s) 343.376.748.544 bytes free
Here I am initiating the command to run my script: 在这里,我启动命令来运行我的脚本:
K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat testcase.robot
K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat Abbott.robot
K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat Abbott.robot
K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat Abbott.robot
K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat testcase.robot
K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat testcase.robot
Could you please tell why is my script not initiated 你能告诉我为什么我的脚本没有启动吗
The question is a little unclear, however try running your script using cmd with pybot again. 这个问题还不清楚,但是尝试再次使用pybot和cmd来运行脚本。 The command should/could look something like: 该命令应该/可能看起来像:
pybot \PycharmProjects\workshop-robot.robot
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.