/usr/bin/flogtool is in python-foolscap 0.6.5-1.
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 | #! /usr/bin/python
import sys, os.path
# preamble to allow bin/flogtool to be run out of an uninstalled source tree
where = os.path.realpath(sys.argv[0]).split(os.sep)
if len(where) >= 2 and where[-2] == "bin":
base = os.sep.join(where[:-2])
else:
base = os.path.realpath(".")
if (os.path.exists(os.path.join(base, "setup.py")) and
os.path.exists(os.path.join(base, "foolscap"))):
sys.path.insert(0, base)
from foolscap.logging.cli import run_flogtool
if __name__ == '__main__':
run_flogtool()
|