Fix runtime dir lookup.
This commit is contained in:
parent
e541a75630
commit
cd1754f783
1 changed files with 1 additions and 4 deletions
|
@ -66,10 +66,7 @@ fn read_query(language: &str, filename: &str) -> String {
|
||||||
let root = crate::runtime_dir();
|
let root = crate::runtime_dir();
|
||||||
// let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
// let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||||
|
|
||||||
let path = root
|
let path = root.join("queries").join(language).join(filename);
|
||||||
.join("../runtime/queries")
|
|
||||||
.join(language)
|
|
||||||
.join(filename);
|
|
||||||
|
|
||||||
let query = std::fs::read_to_string(&path).unwrap_or_default();
|
let query = std::fs::read_to_string(&path).unwrap_or_default();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue