|
a/src/python/samples/rcldlkp.py |
|
b/src/python/samples/rcldlkp.py |
|
... |
|
... |
14 |
import os
|
14 |
import os
|
15 |
import stat
|
15 |
import stat
|
16 |
import sys
|
16 |
import sys
|
17 |
import re
|
17 |
import re
|
18 |
|
18 |
|
19 |
rclconf = "/Users/dockes/.recoll-test"
|
19 |
rclconf = "/Users/dockes/.recoll-dlkp"
|
20 |
|
20 |
|
21 |
def udi(docfile, numrec):
|
21 |
def udi(docfile, numrec):
|
22 |
return docfile + "#" + str(numrec)
|
22 |
return docfile + "#" + str(numrec)
|
23 |
|
23 |
|
24 |
###############################################################
|
24 |
###############################################################
|
|
... |
|
... |
67 |
|
67 |
|
68 |
|
68 |
|
69 |
################################################################
|
69 |
################################################################
|
70 |
|
70 |
|
71 |
def usage():
|
71 |
def usage():
|
72 |
sys.stderr.write("Usage: doclookup.py <filename> [<recnum>]\n")
|
72 |
sys.stderr.write("Usage: rcldlkp.py <filename> [<recnum>]\n")
|
73 |
exit(1)
|
73 |
exit(1)
|
74 |
|
74 |
|
75 |
if len(sys.argv) < 2:
|
75 |
if len(sys.argv) < 2:
|
76 |
usage()
|
76 |
usage()
|
77 |
|
77 |
|