From 37058bb7aeb7a3bf36688172c6d1596cd4c3c956 Mon Sep 17 00:00:00 2001 From: davidb Date: Tue, 22 Apr 2003 23:20:37 +0000 Subject: [PATCH 1/1] the command line front end --- bin/pyrwhoisd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bin/pyrwhoisd diff --git a/bin/pyrwhoisd b/bin/pyrwhoisd new file mode 100755 index 0000000..7532b5b --- /dev/null +++ b/bin/pyrwhoisd @@ -0,0 +1,21 @@ +#! /usr/bin/env python + +# -*- python -*- +import sys, os + +# determine if the rwhoisd package is in the standard spot relative to +# this script. +this_path = sys.path[0] +rwhoisd_path = os.path.join(this_path, "..", "rwhoisd") +if os.path.isdir(rwhoisd_path): + sys.path.append(rwhoisd_path) + + +import RwhoisServer + +RwhoisServer.init(sys.argv) +try: + RwhoisServer.serve() +except KeyboardInterrupt: + print "interrupted" + -- 2.36.6