mtots_core 0.1.2

Core implementation of the mtots scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

#[cfg(os = "windows")]
pub fn home() -> Option<String> {
    match env::var("UserProfile") {
        Ok(pathstr) => Some(pathstr),
        _ => None,
    }
}

#[cfg(not(os = "windows"))]
pub fn home() -> Option<String> {
    match env::var("HOME") {
        Ok(pathstr) => Some(pathstr),
        _ => None,
    }
}