Re: do export statement in Python script

2008-10-22 Thread Simon Strobl
On 22 Okt., 13:24, "James Mills" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 9:19 PM, Simon Strobl <[EMAIL PROTECTED]> wrote: > > #!/usr/bin/ > > python > > > import os > > > os.system("export NLTK_DATA=/opt/nltk/data/") > > Try: > > os.environ["NLTK_DATA"] = "/opt/nltk/data/" > > if that

Re: do export statement in Python script

2008-10-22 Thread Diez B. Roggisch
Simon Strobl wrote: > Hello, > > a program of mine, which is supposed to be used in a project, uses > nltk. I want the other users to be able to use my program without > having to fiddle around with their environment. Therefore, I tried > this code: > > #!/usr/bin/ > python > > import os > > o

Re: do export statement in Python script

2008-10-22 Thread James Mills
On Wed, Oct 22, 2008 at 9:19 PM, Simon Strobl <[EMAIL PROTECTED]> wrote: > #!/usr/bin/ > python > > import os > > os.system("export NLTK_DATA=/opt/nltk/data/") Try: os.environ["NLTK_DATA"] = "/opt/nltk/data/" if that doesn't work, consider wrapping up NLTK in a bash script that contains the shel

do export statement in Python script

2008-10-22 Thread Simon Strobl
Hello, a program of mine, which is supposed to be used in a project, uses nltk. I want the other users to be able to use my program without having to fiddle around with their environment. Therefore, I tried this code: #!/usr/bin/ python import os os.system("export NLTK_DATA=/opt/nltk/data/") i