Opening an application

Here is a snippet I use:

    def OnWxWindowsDocs(self, event=None):
        # do we know where the python docs are ?
        location = self.FindLocation(KEY_WXDOCS)
        if location == None: return
        # are we on Windows ?
        if wxPlatform == '__WXMSW__':
            cmd = 'start ' + location + os.sep + 'wx.chm'
        else:
            cmd = 'sh ' + location + os.sep + ' &'
        print 'trying to spawn ' + cmd
        os.system(cmd)

Richard Lawson
Lead Developer
CoLinx, LLC
richard.lawson@colinx.com

---------+---------------------------->
        > "Tiago Duarte |
        > Felix" |
        > <tdf@mega.ist.utl|
        > .pt> |
        > >
        > 04/10/2003 01:12 |
        > PM |
        > Please respond to|
        > wxPython-users |
        > >
---------+---------------------------->

  >--------------------------------------------------------------------------------------------------------------|
  > >
  > To: <wxPython-users@lists.wxwindows.org> |
  > cc: |
  > Subject: [wxPython-users] Opening an application |
  >--------------------------------------------------------------------------------------------------------------|

i have an application made with wxPython.. and now.. from within the
application i want
to open a chm.... (help file for windows)

i was thinking of using
os.execlp("hh.exe","hh.exe "+"help.chm")

my problem is that it closes the application.... (accordind to python's
help
it should do that)
however i need to keep the application runnig... so my solution
was using a fork creating a child process and then opening the chm file i
need... but windows hasn't got fork...

so how can i do this???
help me please!

···

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