sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37239
[Question #288655]: run() did not work in module
New question #288655 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288655
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.
Best regards
Rob
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.