Message3798
Logged In: YES
user_id=113328
Using a pyw file doesn't work, as that stops the usage
pydoc <module>
which should display documentation in the console window.
Also, .py[w] files aren't executable without an extension.
For example, you'd have to type pydoc.pyw, not just pydoc.
Instead of %*, use %1 %2 %3 %4 %5 %6 %7 %8 %9. And to avoid
python.exe if there are no args (when the Tk stuff is used)
how about
@echo off
if "%1"=="" pythonw -c "import pydoc; pydoc.cli()"
if NOT "%1"=="" python -c "import pydoc; pydoc.cli()" %1 %2
%3 %4 %5 %6 %7 %8 %9
That should work on 9x and NT/2000. I repeat the test for
simplicity. You could use GOTO and labels, instead...
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 13:53:29 | admin | link | issue407300 messages |
| 2007-08-23 13:53:29 | admin | create | |
|