Problem using os.system()
I'm experiencing some problem using os.system()
this is my code:
import os
os.system('taskkill /f /im notepad.exe')
this is the error message I'm getting:
[error] Stopped
[error] An error occurs at line 3
[error] Error message: Traceback (most recent call last):
File "C:\Users\
os.system('taskkill /f /im notepad.exe')
File "C:\Program Files (x86)\Sikuli X\sikuli-
File "C:\Program Files (x86)\Sikuli X\sikuli-
File "C:\Program Files (x86)\Sikuli X\sikuli-
File "C:\Program Files (x86)\Sikuli X\sikuli-
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
Similar thing happens when I try to use os.system to execute a batch file. Do you know what the problem is?
The strange thing is that this worked once, then it stopped working again.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: