/usr/bin/rip is in morituri 0.2.0-2.
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 37 38 39 | #! /usr/bin/python
# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
import sys
# /usr/local/bin typically is on PATH, making it possible to find this file.
# However, /usr/local/lib/pythonX.Y/*-packages usually isn't, so let's
# make sure here it is.
if not "/usr/lib/python2.7/site-packages" in sys.path:
sys.path.append("/usr/lib/python2.7/site-packages")
# first try to import morituri
try:
import morituri
except ImportError:
sys.stderr.write('''The rip binary cannot find its python package.
This means that the 'morituri' directory containing __init__.py is not on your
PYTHONPATH.
Typically this is due to a broken install.
Please fix the problem, and verify that it is fixed by starting python and
typing:
>>> import morituri
and assure it doesn't raise an exception.
''')
sys.exit(1)
# now load the main function
try:
from morituri.rip import main
sys.exit(main.main(sys.argv[1:]))
except ImportError, e:
raise
from morituri.util import deps
deps.handleImportError(e)
|