Commit a0480652 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #56 from lameiro/master

Change the logic to determine path to parse_ast.py, otherwise it breaks usage of pyston binary.
parents cc5ec558 b0d50771
......@@ -796,6 +796,9 @@ static std::string getParserCommandLine(const char* fn) {
parse_ast_fn = llvm::sys::fs::getMainExecutable(NULL, NULL);
assert(parse_ast_fn.size() && "could not find the path to the pyston src dir");
// Start by removing the binary name, because the "pyston" binary will break the logic below
llvm::sys::path::remove_filename(parse_ast_fn);
while (llvm::sys::path::filename(parse_ast_fn) != "pyston") {
llvm::sys::path::remove_filename(parse_ast_fn);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment