help with external call

Hello,

I use this on Windows 98 - XP and Linux, I hope this willl help you :

agChain('My program', 'Myparam')

# Chainage à un pgm sans attente de retour
def agChain(Pgm, Param) :
    filename = Pgm + ".py"
    if ' ' in filename :
        filename = '"' + filename + '"'
    if not os.path.isfile(os.path.join(sys.path[0], filename)) :
        return
    python = sys.executable
    args = [python, filename]
    for elem in Param :
        args.append(elem)
    try :
        os.spawnv(os.P_NOWAIT, python, args)
    except :
        return

Yours.

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO
1330, route de Neufchatel
F-76230 QUINCAMPOIX
Tel. : 33.2.32.80.87.87 / Fax : 33.2.32.80.87.88
Web site : http://www.agorinfo.fr

Randy.W.Lusk@lesschwab.com a écrit :

···

Any more ideals. The os.spawn... and StartExternalProgram example acted
as if something was going to happen but the external program wouldn't
start. If it did start it close real fast.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org