Question #288655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288655
Description changed to:
This code works in the main script file:
cmdout = run('wmic.exe process list status')
processList = cmdout.split("\n")
def procTrim( str ):
strs = str.split(' ')
return strs[0].strip()
list = map(procTrim ,processList)
popup(list[30])
But if it is moved to a module and included (and reloaded) via the main
script, run() did not return a multiline text like before, instead it returns a
bool.
I did not understand that behaviour and can't handle that. I need the
cmdline output.
edit:
It's getting worse and worse. If the submodule is called "runTest" and the
called function is called "list()", the run() function works like expected. But
in my case the module name is "Process" and the function name is "list()". So
if the function is called with "Process.list()" i got just a bool objct from
run().
Best regards
Rob
--
You received this question notification because your team Sikuli Drivers
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