<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>Hello,<br><br>When I run pylint through pylint.bat I do not get the return code of pylint.<br>pylint.bat always returns 0<br><br>Could you please add 'exit(ERRORLEVEL)' after the exit: label to solve this?<br><br>My pylint.bat now looks like (additions are bold);<br><span style="font-family: Default Monospace,Courier New,Courier,monospace;">@echo off</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">rem = """-*-Python-*- script</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">rem -------------------- DOS section --------------------</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">rem You could set PYTHONPATH or TK environment variables here</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">python -x "%~f0" %* <span style="font-weight: bold;">2&gt;NUL</span></span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">goto exit</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">&nbsp;</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">"""</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;"># -------------------- Python section --------------------</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">import sys</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">from pylint import lint</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">lint.Run(sys.argv[1:])</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">&nbsp;</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">DosExitLabel = """</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">:exit</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace; font-weight: bold;">exit(ERRORLEVEL)</span><br style="font-family: Default Monospace,Courier New,Courier,monospace;"><span style="font-family: Default Monospace,Courier New,Courier,monospace;">rem """</span><br><br>Kind regards,<br><br><div>Okko Willeboordse<br>Software Designer<br><br>Imtech ICT Technical Systems<br>A: Henry Dunantstraat 38, Amersfoort<br>T: +31 (0) 33 4543333<br>E: <a href="mailto:okko.willeboordse@imtech.nl">okko.willeboordse@imtech.nl</a><br>W: <a href="http://www.imtechict.nl">www.imtechict.nl</a><br></div></div></FONT>