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…
Thanx
Robert
···
Découvrez une nouvelle façon d’obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
On 2007-04-03, Robert VERGNES <robert.vergnes@yahoo.fr> wrote:
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 ?
--
Grant Edwards grante Yow! Everybody is going
at somewhere!! It's probably
visi.com a garage sale or a disaster
Movie!!
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
···
Robert VERGNES <robert.vergnes@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...