Browse code

Fix path issue with build.rs

Olivier Lecointre authored on 02/10/2024 00:17:52
Showing 1 changed files
... ...
@@ -30,9 +30,8 @@ fn get_target_path() -> PathBuf {
30 30
 }
31 31
 
32 32
 fn main() {
33
-	//let _out_dir = env::var("OUT_DIR").unwrap();
34 33
 	let target_dir = get_target_path();
35
-    let src = "/home/olivier/vdocs/Projects/rust/rustapp/emoticon.png";//Path::join(&env::current_dir().unwrap(), "/emoticon.png");
34
+    let src = Path::join(&env::current_dir().unwrap(), "emoticon.png");
36 35
     println!("Source {:?}",src);
37 36
     let dest = Path::join(Path::new(&target_dir), Path::new("emoticon.png"));
38 37
     println!("Dest {:?}",dest);