FAQ
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

Search Discussions

  • Will McGugan at Aug 17, 2004 at 1:08 pm

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedAug 17, '04 at 11:00a
activeAug 17, '04 at 1:08p
posts2
users2
websitepython.org

2 users in discussion

Fowlertrainer: 1 post Will McGugan: 1 post

People

Translate

site design / logo © 2022 Grokbase