sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37242
Re: [Question #288655]: run() did not work in module
Question #288655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288655
tranquillo posted a new comment:
In my main project are subfolders "Process.sikuli" that contains
"Process.py" and this contains:
from sikuli import *
def list():
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)
return list
This will be called in the main script with import and reload().
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.