We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0251cff commit 4d2d130Copy full SHA for 4d2d130
rewatch/src/helpers.rs
@@ -189,9 +189,17 @@ pub fn get_bin_dir() -> PathBuf {
189
}
190
191
pub fn get_bsc() -> PathBuf {
192
- match std::env::var("RESCRIPT_BSC_EXE") {
+ let path = match std::env::var("RESCRIPT_BSC_EXE") {
193
Ok(val) => PathBuf::from(val),
194
Err(_) => get_bin_dir().join("bsc.exe"),
195
+ };
196
+
197
+ match path
198
+ .canonicalize()
199
+ .map(StrippedVerbatimPath::to_stripped_verbatim_path)
200
+ {
201
+ Ok(path) => path,
202
+ Err(_) => panic!("Could not find bsc.exe"),
203
204
205
0 commit comments