partial device.env path

This commit is contained in:
Romulus21
2021-06-05 22:01:40 +02:00
parent ca054a618e
commit 76185d4327

View File

@@ -6,8 +6,8 @@ use std::path::Path;
pub fn read_env_var() {
let filename = "device.env";
let mut path = env::var("PWD").unwrap().to_string();
path.push('/');
let mut path = env::var("HOME").unwrap().to_string();
path.push_str("/Scripts/");
path.push_str(filename);
println!("{}", path);