mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Paths are relative to CARGO_MANIFEST_DIR
The cwd is different for workspaces, so use the manifest env var instead.
This commit is contained in:
parent
b762948456
commit
6283169a30
@ -43,7 +43,7 @@ impl Interner {
|
||||
map: RefCell::new(HashMap::new()),
|
||||
strings: RefCell::new(HashSet::new()),
|
||||
files: RefCell::new(HashMap::new()),
|
||||
root: env::current_dir().unwrap(),
|
||||
root: env::var_os("CARGO_MANIFEST_DIR").unwrap().into(),
|
||||
crate_name: env::var("CARGO_PKG_NAME").unwrap(),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user