Hello,

When I run pylint through pylint.bat I do not get the return code of pylint.
pylint.bat always returns 0

Could you please add 'exit(ERRORLEVEL)' after the exit: label to solve this?

My pylint.bat now looks like (additions are bold);
@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %* 2>NUL
goto exit
 
"""
# -------------------- Python section --------------------
import sys
from pylint import lint
lint.Run(sys.argv[1:])
 

DosExitLabel = """
:exit
exit(ERRORLEVEL)
rem """

Kind regards,

Okko Willeboordse
Software Designer

Imtech ICT Technical Systems
A: Henry Dunantstraat 38, Amersfoort
T: +31 (0) 33 4543333
E: okko.willeboor...@imtech.nl
W: www.imtechict.nl
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to