the command line front end
authordavidb <davidb>
Tue, 22 Apr 2003 23:20:37 +0000 (23:20 +0000)
committerdavidb <davidb>
Tue, 22 Apr 2003 23:20:37 +0000 (23:20 +0000)
bin/pyrwhoisd [new file with mode: 0755]

diff --git a/bin/pyrwhoisd b/bin/pyrwhoisd
new file mode 100755 (executable)
index 0000000..7532b5b
--- /dev/null
@@ -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"
+