nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/prpr/src/core.rs b/prpr/src/core.rs
2index 7f9d4db..33c44bb 100644
3--- a/prpr/src/core.rs
4+++ b/prpr/src/core.rs
5@@ -68,6 +68,14 @@ thread_local! {
6 }
7
8 pub fn init_assets() {
9+ if let Ok(root_path) = std::env::var("PHIRA_ROOT") {
10+ let path = std::path::Path::new(&root_path);
11+ if path.exists() {
12+ std::env::set_current_dir(path).unwrap();
13+ set_pc_assets_folder("assets");
14+ return;
15+ }
16+ }
17 if let Ok(mut exe) = std::env::current_exe() {
18 while exe.pop() {
19 if exe.join("assets").exists() {