T
Tom Willis
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?
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?