git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define systemd.log_target=console when used with systemd-debug
[plcapi.git]
/
Server.py
diff --git
a/Server.py
b/Server.py
index
560bb74
..
4a0dc29
100755
(executable)
--- a/
Server.py
+++ b/
Server.py
@@
-5,8
+5,6
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Server.py,v 1.2 2006/09/06 19:15:35 mlhuang Exp $
-#
import os
import sys
import os
import sys
@@
-14,6
+12,9
@@
import getopt
import traceback
import BaseHTTPServer
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):
from PLC.API import PLCAPI
class PLCAPIRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):