Reputation: 71
I installed pychecker and noticed the batch file I should use to run pychecker has these entries:
C:\Python26\python.exe
C:\Python26\Lib\site-packages\pychecker\checker.py %*
What does the second line mean?
Upvotes: 2
Views: 1554
Reputation: 27996
What you are seeing isn't Python code. It is a Windows command script.
%*
means pass all the arguments that you passed to the batch file.
Upvotes: 5
Reputation: 1077
%* is the arguments that you pass to the batch file. What ever arguments you pass to the batch file from the command line is in turn passed to checker.py.
If you call
checker.bat myfile.py
then the lines in the batch file will be replaced as
C:\Python26\python.exe
C:\Python26\Lib\site-packages\pychecker\checker.py myfiile.py
You can find more details here
Upvotes: 4
Reputation: 39004
It doesn't mean anything to python, it is being expanded by the shell (cmd.com). I think it's the arguments list passed to the batch file.
Upvotes: 1