diff options
author | Joel Martin <github@martintribe.org> | 2013-10-29 09:37:02 -0500 |
---|---|---|
committer | Joel Martin <github@martintribe.org> | 2013-10-29 09:41:26 -0500 |
commit | 13c99bcf053f7f3af8ba84c0d963a9591e020f49 (patch) | |
tree | 925d5b9a2c6f25aff41387e4257c3e1bc039d5a6 /tests/echo.py | |
parent | b4e0b534d5d04d57265045b4baf49dd81555064b (diff) | |
download | websockify-13c99bcf053f7f3af8ba84c0d963a9591e020f49.tar.gz |
Fix search path construction in tests.
This way the tests can be run directly from within the tests directory
and they might also have a chance of running on Windows (where the
path separator is different).
Diffstat (limited to 'tests/echo.py')
-rwxr-xr-x | tests/echo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/echo.py b/tests/echo.py index d79553e..1d46d50 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 +sys.path.insert(0,os.path.join(os.path.dirname(__file__), "..")) +from websockify.websocket import WebSocketServer class WebSocketEcho(WebSocketServer): """ |