summaryrefslogtreecommitdiffstats
path: root/pyserver
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-03-02 10:26:13 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-03-02 10:26:13 +0100
commit8719b84a95805d109e21c20f05a0164315e1b38a (patch)
tree2cfbb6ce8af7e9a4acd9e2e085bef8a212bc1701 /pyserver
parent8eca0564a1dd6aac125086a244687b4813a1fd86 (diff)
downloadpcitool-8719b84a95805d109e21c20f05a0164315e1b38a.tar.gz
pcitool-8719b84a95805d109e21c20f05a0164315e1b38a.tar.bz2
pcitool-8719b84a95805d109e21c20f05a0164315e1b38a.tar.xz
pcitool-8719b84a95805d109e21c20f05a0164315e1b38a.zip
Move scripts handing code from py.c to Python wrap
Diffstat (limited to 'pyserver')
-rw-r--r--pyserver/api_server.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyserver/api_server.py b/pyserver/api_server.py
index 18ee1f8..c170a19 100644
--- a/pyserver/api_server.py
+++ b/pyserver/api_server.py
@@ -1,7 +1,7 @@
import os
import sys
-import pcipywrap
+import pcilib
import time
import json
@@ -471,7 +471,7 @@ class PcilibServerHandler(BaseHTTPRequestHandler):
' command: run_script - Run specified script\n'
' required fields\n'
- ' script_name: - script name (with extension)\n'
+ ' script_name: - script name (without extension)\n'
' value: - input value in json format\n'
'\n'
@@ -503,9 +503,9 @@ class PcilibServerHandler(BaseHTTPRequestHandler):
class ApiServer(MultiThreadedHTTPServer):
def __init__(self, device='/dev/fpga0', model=None, adress=('0.0.0.0', 9000)):
#redirect logs to exeption
- pcipywrap.redirect_logs_to_exeption()
+ pcilib.redirect_logs_to_exeption()
#pass Pcipywrap to to server handler
- self.lib = pcipywrap.Pcipywrap(device, model)
+ self.lib = pcilib.Pcilib(device, model)
def handler(*args):
PcilibServerHandler(self.lib, *args)
MultiThreadedHTTPServer.__init__(self, adress, handler)