windows bat file question

Tim Roberts timr at probo.com
Thu Mar 3 06:33:29 CET 2005


Tom Willis <tom.willis at gmail.com> wrote:

>I'm trying to get pylint running on windows and the bat file for it
>seems a little screwy. I'm hoping someone may have figured this out
>already.
>
>rem = """-*-Python-*- script
>@echo off
>rem -------------------- DOS section --------------------
>rem You could set PYTHONPATH or TK environment variables here
>python %*

This should make it work:
  python %0.bat %*

>goto exit
> 
>"""
># -------------------- Python section --------------------
>import sys
>from logilab.pylint import lint
>lint.Run(sys.argv[1:])
> 
>
>DosExitLabel = """
>:exit
>rem """
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list