Re: looking for a simple way to load a program from another python program..

2006-08-14 Thread [EMAIL PROTECTED]
Gabriel Genellina wrote: > At Sunday 13/8/2006 16:51, [EMAIL PROTECTED] wrote: > > > I was looking for a simple way to load a simple python program from > >another python program. > > > >I tried > > > >os.system(cabel) > > > >The file name is cabel.py a csound instrument editor.. > > > >NameEr

Re: looking for a simple way to load a program from another python program..

2006-08-14 Thread Gabriel Genellina
At Sunday 13/8/2006 16:51, [EMAIL PROTECTED] wrote: I was looking for a simple way to load a simple python program from another python program. I tried os.system(cabel) The file name is cabel.py a csound instrument editor.. NameError: global name 'cabel' is not defined Have you tried o

Re: looking for a simple way to load a program from another python program..

2006-08-14 Thread AlbaClause
[EMAIL PROTECTED] wrote: > I was looking for a simple way to load a simple python program from > another python program. > > I tried > > os.system(cabel) > > The file name is cabel.py a csound instrument editor.. > > The error I am getting is > > Traceback (most recent call last): > Fil

Re: looking for a simple way to load a program from another python program..

2006-08-13 Thread Luis M. González
Try this: import os os.startfile('cabel.py') This should work with any program or file, not only python ones. Hope this helps, Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a simple way to load a program from another python program..

2006-08-13 Thread [EMAIL PROTECTED]
Caleb Hattingh wrote: > Hi Eric > > Check that ".py" and ".pyw" are in your PATHEXT environment variable > (are you using Windows?). Then, if the folder that cabel is in is in > your PATH environment variable, and the correct association for .py > files is set up (i.e. they get run by python.exe

Re: looking for a simple way to load a program from another python program..

2006-08-13 Thread [EMAIL PROTECTED]
Caleb Hattingh wrote: > Hi Eric > > Check that ".py" and ".pyw" are in your PATHEXT environment variable > (are you using Windows?). Then, if the folder that cabel is in is in > your PATH environment variable, and the correct association for .py > files is set up (i.e. they get run by python.exe

Re: looking for a simple way to load a program from another python program..

2006-08-13 Thread Caleb Hattingh
Hi Eric Check that ".py" and ".pyw" are in your PATHEXT environment variable (are you using Windows?). Then, if the folder that cabel is in is in your PATH environment variable, and the correct association for .py files is set up (i.e. they get run by python.exe), either os.system('cabel') or o

Re: looking for a simple way to load a program from another python program..

2006-08-13 Thread Simon Forman
[EMAIL PROTECTED] wrote: > I was looking for a simple way to load a simple python program from > another python program. > > I tried > > os.system(cabel) > > The file name is cabel.py a csound instrument editor.. > > The error I am getting is > > Traceback (most recent call last): > File "C:\Pyth