os popen problems in w98

Will McGugan news at nospamwillmcgugan.com
Tue Aug 17 09:08:16 EDT 2004


fowlertrainer at anonym.hu wrote:
> Hi !
> 
> I use this code section in my program:
> 
>    cho,chi=os.popen2(os.getcwd()+'/genlotto.py')
> 
>    genlotto=chi.read()
> 
>    genlotto=genlotto.strip()[1:-1]
> 
> This code is working on wxp, and w2000.
> I use that code to load a subprogram's result.
> 
> In Win98 it is hanged, and is nothing happened.
> 
> Why ? What I do wrong ?
> 
> Thanx for help:
> FT

Just a guess, but I've noticed from C++ work that Win98 doesnt like the 
mixing of / and \ in urls. Try changing '/genlotto.py' to '\genlottor.py'.


Will McGugan



More information about the Python-list mailing list