[Distutils] Odd thought

Jack Jansen jack@oratrix.nl
Fri Feb 23 11:02:09 2001


> Aha. If a setup.py started with this:
> import sys
> if len(sys.argv) == 1:
>     sys.argv.append('install')
> 
> it would work to double-click it. No window needed. (:->

Or you could go into "interactive mode": show the help message, as is done 
now, and then say "Command: ", read a line, strip, push into sys.argv. 
Actually this
could be API-compatible with the dialog suggestion I made earlier. The code 
would just try a couple of the dialogs (Win32GetArgv, MacGetArgv, 
TkinterGetArgv, StdinGetArgv) until it finds one that can be imported.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm