Search the Community
Showing results for tags 'pylint'.
-
Hi All, On a system we're working on, we are allowing the operator to enter a python script. The script is executed with LabPython, which seems to work well. We implemented the script editing with ScintillaNET (http://scintillanet.codeplex.com/) We also implemented pre-execution script checking (I don’t know the right term for this) with pylint (http://pypi.python.org/pypi/pylint) Attached is an example of our implementation. I’m posting this in case anyone might find it useful. A couple of items that could be improved 1) This implementation used system exec to run pylint, could pylint be run via LabPython? How would you retrieve the output string? 2) Disabling the scintilla .NET control (via a property node) doesn’t fit visually with other LV controls. Could the right look be achieved by manipulating the control's colors 3) Auto indentation hasn’t been implemented. In order for this to work you'll need to install: Python 2.7.2 (This might work with newer version, I haven't tried) http://www.python.org/getit/releases/2.7.2/ logilab-astng-0.23.0 http://pypi.python.o...i/logilab-astng logilab-common-0.57.0 http://www.logilab.o...b-common/0.57.0 pylint-0.25.0 http://pypi.python.org/pypi/pylint SintillaNET 2.2 http://scintillanet.codeplex.com/ If anyone does make improvements to this, please post your updates. Thanks Denis Python Trial.llb
-
- python
- scintillanet
-
(and 2 more)
Tagged with: