Starting Python from autorun.inf on WinXX?

Gordon McMillan gmcm at hypernet.com
Thu Mar 16 10:37:38 EST 2000


Peter Funk wrote:
> Please excuse my ignorance, but I'm a Linux/Unix guy don't know much about
> WinXX.  I've tried to put the following into the autorun.inf
> of a CD-Rom:
> 
> [autorun]
> OPEN=test\dosbin\pythonw.exe test\hello.pyw
> ICON=archiv.ico,0
> 
> That didn't work, because win98 refuses to find python15.dll. 

I know squat about autorun.inf stuff, but if python15.dll is in 
the same directory as pythonw.exe, Windows should find it.

> (Of course, I should have  known this :-( )
> Than I tried to put a .bat file into autorun.inf, that does a
> proper setup of PYTHONPATH, TCL_LIBRARY and so on.  But this also
> didn't work, because WinXX seems to refuse to start a batch file 
> from autorrun.inf?  Is that true?  Is there a workaround so that
> I still can autostart a Python/Tk GUI from CD without having the
> user to install Python on his WinXX box first?

I know people have used my installer for this purpose (having 
made changes to accomodate them).

http://starship.python.net/crew/gmcm/distribute.html


- Gordon




More information about the Python-list mailing list