mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
httpserver: launch webserver with the same python interpreter.
This commit is contained in:
parent
7d695fbed4
commit
24046a6168
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ import os
|
||||||
import time
|
import time
|
||||||
import loggable
|
import loggable
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
logcat = "httpserver"
|
logcat = "httpserver"
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@ class HTTPServer(loggable.Loggable):
|
||||||
print "Starting Server"
|
print "Starting Server"
|
||||||
try:
|
try:
|
||||||
self.debug("Lunching twistd server")
|
self.debug("Lunching twistd server")
|
||||||
cmd = "python %s %d" % (os.path.join(os.path.dirname(__file__),
|
cmd = "%s %s %d" % (sys.executable, os.path.join(os.path.dirname(__file__),
|
||||||
"RangeHTTPServer.py"),
|
"RangeHTTPServer.py"),
|
||||||
self.options.http_server_port)
|
self.options.http_server_port)
|
||||||
curdir = os.path.abspath(os.curdir)
|
curdir = os.path.abspath(os.curdir)
|
||||||
|
|
Loading…
Reference in a new issue