M.N.A.Smadi wrote:
> am getting an error in the script as follows:
>
> NameError: global name 'os' is not defined
>
> however i dont get the same error when running from the python CLI.
> (and yes i am importing the os module)
> Steven Bethard wrote:
> Can you give the full exception message (i.e.
Title: RE: running programs from within python
[James Stroud]
#- import os
He says he did it:
#- > > M.N.A.Smadi wrote:
#- > >> (and yes i am importing the os module)
But he still didn't paste the code here
. Facundo
Bitácora De Vuelo: http://www.ta
You should
import os
On Wednesday 09 March 2005 10:06 am, M.N.A.Smadi wrote:
> this is the full error
>
>
> Traceback (most recent call last):
> File "./plugin.py", line 60, in ?
> main()
> File "./plugin.py", line 40, in main
> os.system("/root/tmp/bibutils_3.14/isi2xml " + isi_file
this is the full error
Traceback (most recent call last):
File "./plugin.py", line 60, in ?
main()
File "./plugin.py", line 40, in main
os.system("/root/tmp/bibutils_3.14/isi2xml " + isi_file + " >
tmp_isi_xml.xml")
NameError: global name 'os' is not defined
smadi
Steven Bethard wrote:
M.
M.N.A.Smadi wrote:
am getting an error in the script as follows:
NameError: global name 'os' is not defined
however i dont get the same error when running from the python CLI. (and
yes i am importing the os module)
Can you give the full exception message (i.e. copy-paste it from the
output)?
STe
Title: RE: running programs from within python
[M.N.A.Smadi]
#- am getting an error in the script as follows:
#-
#- NameError: global name 'os' is not defined
What script?
Please paste it here. If it's more than 20 lines, trim it until you find the smaller script tha
am getting an error in the script as follows:
NameError: global name 'os' is not defined
however i dont get the same error when running from the python CLI. (and
yes i am importing the os module)
is this a bug in python 2.3 (the one am currently using)
thanks
m.smadi
Steven Bethard wrote:
M.N.A.S
M.N.A.Smadi wrote:
M.N.A.Smadi wrote:
hi;
in general: how can i pass a string containing a concatenated sequcne
of command line arguments to a unix system CLI?
i guess i will answer myself:
import os
os.system(string)
Also worth noting is that if you're using Python 2.4, you might want to
look a
Title: RE: running programs from within python
[M.N.A.Smadi]
#- i guess i will answer myself:
#- import os
#- os.system(string)
If you have Py2.4, it's better to use subprocess().
. Facundo
Bitácora De Vuelo: http://www.taniquetil.com.ar/plog
PyAr - Python Argentina:
M.N.A.Smadi wrote:
hi;
in general: how can i pass a string containing a concatenated sequcne
of command line arguments to a unix system CLI?
my specific problem:
i have an executable that is called xyz (written in C if that matters)
that i cannot modify, which prints it is text output to the scr
hi;
in general: how can i pass a string containing a concatenated sequcne of
command line arguments to a unix system CLI?
my specific problem:
i have an executable that is called xyz (written in C if that matters)
that i cannot modify, which prints it is text output to the screen and
takes an i
11 matches
Mail list logo