sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31177
Re: [Question #263790]: Tricks for using pylint with Sikuli?
Question #263790 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263790
Status: Answered => Solved
Brian Redmond confirmed that the question is solved:
Thanks Raimund. Pylint has various rules you can set to ignore warnings and errors, but setting it to ignore everything in the Sikuli API would cut down its usefulness to me too much. It's helpful that you've been able to confirm, though, that there isn't an existing or automatic way to access the API in a way that's helpful to Pylint. Creating a file by hand to mirror the API in Python hasn't been hard, I just wanted to make sure I wasn't doing work that had already been done :) It also works with the autocompletion plugin I'm using.
As for the access to other modules I've created, I've found that the problem with the solution I described before using hard links is that hard links are a problem for git. Another solution that's actually easier is to run this from my working folder:
for x in $PWD/*.sikuli;do export PYTHONPATH="$PYTHONPATH:$x";done
That adds all the sikuli folders to my python path for pylint to find and works great.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.