/usr/bin/hachoir-wx is in python-hachoir-wx 0.3-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from hachoir_wx.app import app_t
from hachoir_wx.version import PACKAGE, VERSION, WEBSITE
from hachoir_core.cmd_line import (getHachoirOptions,
configureHachoir, unicodeFilename)
from optparse import OptionParser
import sys
def parseOptions():
parser = OptionParser(usage="%prog [options] [filename]")
hachoir = getHachoirOptions(parser)
parser.add_option_group(hachoir)
values, arguments = parser.parse_args()
if len(arguments) == 1:
filename = arguments[0]
elif not arguments:
filename = None
else:
parser.print_help()
sys.exit(1)
return values, filename
def main():
print "%s version %s" % (PACKAGE, VERSION)
print WEBSITE
print
values, filename = parseOptions()
configureHachoir(values)
app = app_t(filename)
app.MainLoop()
if __name__ == '__main__':
main()
|