Commit 0cce5a47 authored by Daniel García Moreno's avatar Daniel García Moreno

Fix cargo run flow without FRACTAL_LOCALEDIR env

In the build.rs we're looking for the FRACTAL_LOCALEDIR env variable that is written by the cargo.sh script ran by meson but if we want to run this for development we can't use cargo run because that env doesn't exists so we'll use fractal-gtk/po as default.
parent d4101ccb
......@@ -13,8 +13,9 @@ fn main() {
.unwrap();
// Generating build globals
let default_locales = "./fractal-gtk/po".to_string();
let out_dir = env::var("OUT_DIR").unwrap();
let localedir = env::var("FRACTAL_LOCALEDIR").unwrap();
let localedir = env::var("FRACTAL_LOCALEDIR").unwrap_or(default_locales);
let dest_path = Path::new(&out_dir).join("build_globals.rs");
let mut f = File::create(&dest_path).unwrap();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment