os popen problems in w98

F

fowlertrainer

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
 
W

Will McGugan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top