]> code.delx.au - youtube-cgi/commitdiff
more convenient startup of node.js
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 2 Aug 2013 15:34:53 +0000 (01:34 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 2 Aug 2013 15:34:53 +0000 (01:34 +1000)
youtube.cgi

index 263259cd5ab1c71aea18c449d977a330660755fb..45c8574965dd00947d769c381400fdd14bc854b9 100755 (executable)
@@ -153,7 +153,9 @@ def decode_signature(js_url, s):
        func_block = script[p1:p2+1]
 
        p = subprocess.Popen(
-               ["js"],
+               "js",
+               shell=True,
+               close_fds=True,
                stdin=subprocess.PIPE,
                stdout=subprocess.PIPE
        )