File: flappclient

package info (click to toggle)
foolscap 0.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,372 kB
  • ctags: 3,585
  • sloc: python: 19,756; makefile: 172; sh: 5
file content (18 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download | duplicates (3)
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.client import run_flappclient

if __name__ == '__main__':
    run_flappclient()