from subprocess import call
import os
call(['robot '+os.getcwd()+'\\aaa.robot'])
file_dir: D: /aaa/test/aaa.robotRobot Framework-Datei aus Python-Skript ausführen
Skript für jetzt in demselben Verzeichnis
Output:
Traceback (most recent call last):
File "__init.py", line 7, in <module>
call(['robot '+os.getcwd()+'\\aaa.robot'])
File "C:\Python27\lib\subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 710, in __init_
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execut
startupinfo)
WindowsError: [Error 2] Nie mo┐na odnalečŠ okreťlonego pliku
ich kann es einfach handhaben. Ich erhalte nicht, warum in Python tunning alles so kompliziert ist :(
I gleiche Ergebnis wie diese Zeile (geschrieben direkt an cmd) wollen:
/>robot aaa.robot
Was ist es Ihnen dieses Programm sind in der Hoffnung tun? –
Mein schlechtes, editiert das zum ursprünglichen Post, thx. – user2678074
Dies sollte nur gewöhnliche Startup-Skript sein ... – user2678074