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 shell statement: export var=... cheers James -- -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list