rlua-searcher/src/utils.rs
Andy Weidenbaum cf3a90faca implement PathSearcher
to facilitate module reloading
2021-02-26 20:59:46 +11:00

7 lines
197 B
Rust

use std::path::PathBuf;
/// Return the value of `$CARGO_MANIFEST_DIR` at runtime.
pub(crate) fn runtime_root() -> PathBuf {
PathBuf::new().join(std::env::var("CARGO_MANIFEST_DIR").unwrap())
}