represent the current_dir as an absolute path, not a relative one. (#262)

This commit is contained in:
Mark Thom
2020-03-07 16:00:04 -07:00
parent 6ddfef6383
commit c7591045af
3 changed files with 13 additions and 6 deletions

View File

@@ -52,5 +52,9 @@ fn main()
}
libraries.write_all(b"\n\n m\n };
}").unwrap();
}\n").unwrap();
libraries.write_all(b"\npub static PROJECT_DIR: &'static str = \"").unwrap();
libraries.write_all(env::var("CARGO_MANIFEST_DIR").unwrap().as_bytes()).unwrap();
libraries.write_all(b"\";\n").unwrap();
}