X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Server.py;h=84c33601768685b1b52c9495d6391a933bcfbfe2;hb=refs%2Fheads%2Fplanetlab-4_0-branch;hp=560bb7403d6e1676853ebe14ceaf090636d8a80e;hpb=9a3ccabfbe44eda6350dd80b08a2b01fd38976ed;p=plcapi.git diff --git a/Server.py b/Server.py index 560bb74..84c3360 100755 --- a/Server.py +++ b/Server.py @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Server.py,v 1.2 2006/09/06 19:15:35 mlhuang Exp $ +# $Id: Server.py,v 1.3 2006/10/25 20:33:07 mlhuang Exp $ # import os @@ -14,6 +14,9 @@ import getopt import traceback import BaseHTTPServer +# Append PLC to the system path +sys.path.append(os.path.dirname(os.path.realpath(sys.argv[0]))) + from PLC.API import PLCAPI class PLCAPIRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):