windows bat file question

Tom Willis tom.willis at gmail.com
Tue Mar 1 08:48:13 EST 2005


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 %*
goto exit
 
"""
# -------------------- Python section --------------------
import sys
from logilab.pylint import lint
lint.Run(sys.argv[1:])
 

DosExitLabel = """
:exit
rem """

All I get is the python prompt, the lines starting at import sys don't
run.  If I throw the lines in a python script, I run into path issues.

The overall effect I'm trying to achieve is....

c:\Projects\myproject\pylint mymodule.py



Any ideas?

-- 
Thomas G. Willis
http://paperbackmusic.net



More information about the Python-list mailing list