/usr/bin/flappserver 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 this 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.appserver.cli import run_flappserver
if __name__ == '__main__':
run_flappserver()
|