diff options
Diffstat (limited to 'op_crates/web/lib.rs')
-rw-r--r-- | op_crates/web/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs index 03c0c89af..3d7b75125 100644 --- a/op_crates/web/lib.rs +++ b/op_crates/web/lib.rs @@ -1,10 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -use deno_core::crate_modules; use std::path::PathBuf; -crate_modules!(); - pub struct WebScripts { pub abort_signal: String, pub declaration: String, @@ -14,7 +11,7 @@ pub struct WebScripts { } fn get_str_path(file_name: &str) -> String { - PathBuf::from(DENO_CRATE_PATH) + PathBuf::from(env!("CARGO_MANIFEST_DIR")) .join(file_name) .to_string_lossy() .to_string() |