New question #262157 on Sikuli:
https://answers.launchpad.net/sikuli/+question/262157
Thanks about great tool!
I am first time with Python and Sikuli... How can I check CPU load for specific
processes, to ensure that Sikuli (v1.0.1, Win32 Vista) don't overload them? It
must handle a Win program with lot of graphics, so the program delays often,
and unpredictable. My idea is to set Sikuli to wait, until load of the CPU by
specific processes drops low.
I try to use psutils, but can not load it successfully. I have installed Python
long time ago for a tool, so I install psutils there. Here is the code I used
in Sikuli IDE:
import sys
importPath = "c:\\Python26\\Lib\\site-packages"
if not importPath in sys.path: sys.path.append(importPath)
import psutil
And here is the error:
[error] script [ SikuliX ] stopped with error in line 16
[error] SyntaxError ( ("mismatched input 'as' expecting COLON",
('c:\\Python26\\Lib\\site-packages\\psutil\\__init__.py', 549, 32, ' except
AccessDenied as err:\n')) )
Line 16 in the last one in my code.
I am not tied to this solution, anything else, which allows me to check CPU
load by process, will works. Any other ideas?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp