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
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
[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
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
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
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
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
[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