diff options
author | Evan Martin <martine@danga.com> | 2011-05-13 15:53:02 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-05-13 23:28:07 (GMT) |
commit | 1c80bd1691f69332a8fec42080c1c341c0e2fa44 (patch) | |
tree | fd73c9d72997316fdc7b02f08ba6820784d790af /src/browse.py | |
parent | e2543e423499f2d9619941e33276ae1240fb2b91 (diff) | |
download | Ninja-1c80bd1691f69332a8fec42080c1c341c0e2fa44.zip Ninja-1c80bd1691f69332a8fec42080c1c341c0e2fa44.tar.gz Ninja-1c80bd1691f69332a8fec42080c1c341c0e2fa44.tar.bz2 |
make browse work for all ninja paths
Pass the path to the ninja binary in to the Python script.
Confusingly, in some places the variables were already in place
to do this, but they were accidentally used for something else
entirely.
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 |