3 import findrox
; findrox
.version(2,0,0)
7 __builtins__
._ = rox
.i18n
.translation(os
.path
.join(rox
.app_dir
, 'Messages'))
11 from optparse
import OptionParser
13 parser
= OptionParser()
15 parser
.add_option("--options", action
="store_true", dest
="options",
16 default
=False, help=_("display options dialog"))
18 parser
.add_option("-p", "--path", type="string", dest
="path",
19 default
=None, help=_("specify search path"))
21 parser
.add_option("-t", "--text", type="string", dest
="text",
22 default
=None, help=_("specify search text"))
24 parser
.add_option("-f", "--files", type="string", dest
="files",
25 default
=None, help=_("specify files to search in"))
27 (options
, args
) = parser
.parse_args()
37 win
= filefind
.FindWindow(path
, options
.text
, options
.files
)
42 rox
.report_exception()