from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
to
Stefan Rank <stefan.rank at ofai dot at>
subject
Re: [Python-projects] bug report for pylint - kindof - windows batch
scripts
date
On Wednesday 03 August à 22:00, Stefan Rank wrote:2005/08/08 10:44
> hi, according to the website I'll send this bug report here
yep, that's the right place :)
> 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?)
nop, it has been contributed by a user.
> 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.
ok, I've updated all .bat files to use "python %~f0 %*", thanks for the
fix !
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

