summaryrefslogtreecommitdiff
path: root/tests/echo.py
diff options
context:
space:
mode:
authorPeter Åstrand (astrand) <astrand@cendio.se>2013-11-28 09:14:25 +0100
committerPeter Åstrand (astrand) <astrand@cendio.se>2013-11-28 09:14:25 +0100
commit81e2a53692dd83f13c98c988bad19fe2f2bc52d8 (patch)
treea881e4851f4d6c0689841b8b58102ccd8d4961db /tests/echo.py
parent602248425ab0ed958445647859ba0f7ddf8bb28a (diff)
parent13c99bcf053f7f3af8ba84c0d963a9591e020f49 (diff)
downloadwebsockify-81e2a53692dd83f13c98c988bad19fe2f2bc52d8.tar.gz
Merge commit '13c99bcf053f7f3af8ba84c0d963a9591e020f49'
* commit '13c99bcf053f7f3af8ba84c0d963a9591e020f49': Fix search path construction in tests.
Diffstat (limited to 'tests/echo.py')
-rwxr-xr-xtests/echo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/echo.py b/tests/echo.py
index 9b1d9a6..27bdc46 100755
--- a/tests/echo.py
+++ b/tests/echo.py
@@ -11,8 +11,8 @@ as taken from http://docs.python.org/dev/library/ssl.html#certificates
'''
import os, sys, select, optparse
-sys.path.insert(0,os.path.dirname(__file__) + "/../websockify")
-from websocket import WebSocketServer, WebSocketRequestHandler
+sys.path.insert(0,os.path.join(os.path.dirname(__file__), ".."))
+from websockify.websocket import WebSocketServer, WebSocketRequestHandler
class WebSocketEcho(WebSocketRequestHandler):
"""