|
Lines 116-126
class PyWebSocket(http_server.Lighttpd):
a/Tools/Scripts/webkitpy/layout_tests/servers/websocket_server.py_sec1
|
| 116 |
|
116 |
|
| 117 |
# FIXME https://bugs.webkit.org/show_bug.cgi?id=206546: Should be using the same version of Python run-webkit-tests is |
117 |
# FIXME https://bugs.webkit.org/show_bug.cgi?id=206546: Should be using the same version of Python run-webkit-tests is |
| 118 |
python_interp = sys.executable |
118 |
python_interp = sys.executable |
| 119 |
if sys.version_info > (3, 0): |
119 |
if sys.version_info < (3, 0): |
| 120 |
python_interp = 'python2' |
120 |
python_interp = 'python3' |
| 121 |
|
121 |
|
| 122 |
wpt_tools_base = self._filesystem.join(self._layout_tests, "imported", "w3c", "web-platform-tests", "tools") |
122 |
wpt_tools_base = self._filesystem.join(self._layout_tests, "imported", "w3c", "web-platform-tests", "tools") |
| 123 |
pywebsocket_base = self._filesystem.join(wpt_tools_base, "pywebsocket") |
123 |
pywebsocket_base = self._filesystem.join(wpt_tools_base, "third_party", "pywebsocket3") |
| 124 |
pywebsocket_deps = [self._filesystem.join(wpt_tools_base, "third_party", "six")] |
124 |
pywebsocket_deps = [self._filesystem.join(wpt_tools_base, "third_party", "six")] |
| 125 |
pywebsocket_script = self._filesystem.join(pywebsocket_base, 'mod_pywebsocket', 'standalone.py') |
125 |
pywebsocket_script = self._filesystem.join(pywebsocket_base, 'mod_pywebsocket', 'standalone.py') |
| 126 |
start_cmd = [ |
126 |
start_cmd = [ |