[wxPython-users] how to start a python file from python code
Josiah Carlson
jcarlson at uci.edu
Tue Apr 3 09:25:27 PDT 2007
Robert VERGNES <robert.vergnes at yahoo.fr> wrote:
> Hello,
>
> I have trying to launch another application from Python using spawn unedr WinXP but no success. I had to use startfile.
> But startfile is not recognized by Linux... any idea ?
>
> here is my code:
> mpath = os.getcwdu()
> marg = mpath+"\\plugins\\mplplotter.py" #+' --'+str(self._iddp)
> os.startfile(marg)
> but does work on winXP but not linux...
> I know it is not wxpython... but well there is smart people in this list...
Is the first line of mplplotter.py something like:
#!/usr/bin/env python
If not, then base linux usually won't understand know how to handle it.
- Josiah
More information about the wxpython-users
mailing list