rustdoc: Look for pandoc in ~/.cabal

This commit is contained in:
Brian Anderson 2012-03-07 19:22:02 -08:00
parent 2bfed908e3
commit bdec806848

View File

@ -193,8 +193,12 @@ fn maybe_find_pandoc(
let possible_pandocs = alt maybe_pandoc_cmd {
some(pandoc_cmd) { [pandoc_cmd] }
none {
// FIXME (1936): Need to be able to expand ~ to look in .cabal
["pandoc"]
["pandoc"] + alt os::homedir() {
some(dir) {
[path::connect(dir, ".cabal/bin/pandoc")]
}
none { [] }
}
}
};