-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmod.rs
More file actions
29 lines (24 loc) · 725 Bytes
/
Copy pathmod.rs
File metadata and controls
29 lines (24 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pub mod file;
pub mod preview;
pub mod runner;
pub mod memory;
pub mod template;
pub mod pm;
pub mod system;
pub mod import_cmd;
pub mod path_utils;
use lazy_static::lazy_static;
use std::sync::Mutex;
use crate::project_runner::ProjectRunner;
lazy_static! {
pub static ref PROJECT_RUNNER: ProjectRunner = ProjectRunner::new();
pub static ref RUNTIME_ANALYZER: Mutex<Option<cowork_core::RuntimeAnalyzer>> = Mutex::new(None);
}
pub fn init_app_handle(handle: tauri::AppHandle) {
PROJECT_RUNNER.set_app_handle(handle);
}
/// Initialize PATH for macOS App Bundle compatibility
/// Must be called very early in the application lifecycle
pub fn init_path_for_app_bundle() {
path_utils::init_extended_path();
}