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