Email [Python-projects] bug report for pylint - kindof - windows batch scripts

from
subject
[Python-projects] bug report for pylint - kindof - windows batch scripts
date
2005/08/03 22:00
hi, according to the website I'll send this bug report here

pylint 0.7.0; common 0.11.0; windows xp; python 2.4

the batch scripts installed in the %PYTHONDIR%/Scripts directory don't work.

The escaping of the batch commands is quite clever (i am not sure, is 
this a distutils feature?)
however the parameters used to call python on the same file don't work:

pylint.bat and pylint-gui.bat use::

   python %*

this cannot work as %* == %1 %2 %3 ... and does not include the name of 
the calling script %0

however, symilar.bat uses::

   python %0 %1 %2 %3 ...

better, but still no cigar, as calling symilar.bat from another 
directory (when %Pythondir%/Scripts is in %PATH%), results in an error 
as python cannot find the file symilar.bat (it searches in the current dir).

what is needed is the full path to the calling script.
in windows nt/2k/xp this is achieved with::

   python %~f0 %*

works for me here.

cheers,
stefan

ps: i am not subscribed to the list
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects