Skip to content

Commit

Permalink
fix #19498: apply windows batch patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Emile Anclin committed Mar 23, 2010
1 parent 9edcbd9 commit 6b917a6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 90 deletions.
19 changes: 4 additions & 15 deletions bin/epylint.bat
Original file line number Diff line number Diff line change
@@ -1,16 1,5 @@
@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
"""
# -------------------- Python section --------------------
from pylint import epylint
epylint.Run()


DosExitLabel = """
:exit
rem """
rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python "%~dpn0" %*
23 changes: 4 additions & 19 deletions bin/pylint-gui.bat
Original file line number Diff line number Diff line change
@@ -1,20 1,5 @@
@echo off
rem = """-*-Python-*- script
@echo off
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
"""
# -------------------- Python section --------------------
import sys
from pylint import gui
gui.Run(sys.argv[1:])


DosExitLabel = """
:exit
rem """


rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python "%~dpn0" %*
23 changes: 4 additions & 19 deletions bin/pylint.bat
Original file line number Diff line number Diff line change
@@ -1,20 1,5 @@
@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
"""
# -------------------- Python section --------------------
import sys
from pylint import lint
lint.Run(sys.argv[1:])


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


rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python "%~dpn0" %*
21 changes: 4 additions & 17 deletions bin/pyreverse.bat
Original file line number Diff line number Diff line change
@@ -1,18 1,5 @@
@echo off
rem = """-*-Python-*- script
@echo off
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
"""
# -------------------- Python section --------------------
import sys
from pylint.pyreverse import main
main.Run(sys.argv[1:])


DosExitLabel = """
:exit
rem """
rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python "%~dpn0" %*
23 changes: 4 additions & 19 deletions bin/symilar.bat
Original file line number Diff line number Diff line change
@@ -1,20 1,5 @@
@echo off
rem = """-*-Python-*- script
@echo off
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
"""
# -------------------- Python section --------------------
import sys
from pylint.checkers import similar
similar.run()


DosExitLabel = """
:exit
rem """


rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python "%~dpn0" %*
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 63,8 @@ def ensure_scripts(linux_scripts):
"""
from distutils import util
if util.get_platform()[:3] == 'win':
scripts_ = [script '.bat' for script in linux_scripts]
scripts_ = linux_scripts [script '.bat'
for script in linux_scripts]
else:
scripts_ = linux_scripts
return scripts_
Expand Down

0 comments on commit 6b917a6

Please sign in to comment.