diff options
Diffstat (limited to 'src/browse.py')
-rwxr-xr-x | src/browse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browse.py b/src/browse.py index 1860df3..c671535 100755 --- a/src/browse.py +++ b/src/browse.py @@ -99,7 +99,7 @@ tt { print '</td></tr></table>' def ninja_dump(target): - proc = subprocess.Popen(['./ninja', '-t', 'query', target], + proc = subprocess.Popen([sys.argv[1], '-t', 'query', target], stdout=subprocess.PIPE) return proc.communicate()[0] @@ -110,7 +110,7 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): if target == '': self.send_response(302) - self.send_header('Location', '?' + sys.argv[1]) + self.send_header('Location', '?' + sys.argv[2]) self.end_headers() return |