On Fri, 30 Mar 2007, Ofer Nave wrote:
<http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html> path)|
Returns the directory instance for the named location.
But PyLucene didn't like that:
---
[EMAIL PROTECTED] ~/proj/search/trunk]$ ~/bin/foo.py
PyLucene 2.1.0-1 Lucene 2.1.0-509013
Traceback (most recent call last):
File "/home/ofer/bin/foo.py", line 14, in <module>
store = PyLucene.FSDirectory.getDirectory(directory)
PyLucene.InvalidArgsError: (<type 'PyLucene.FSDirectory'>, 'getDirectory',
('/tmp/foo',))
Fixed.
PS-Just checked one last thing - apparently, just importing PyLucene is
enough to have the process reported as multi-threaded in the STAT column of
'ps'.
Yes, just importing PyLucene initializes libgcj and that starts its finalizer
thread. I also initialize python's threading at the same time.
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev