Last active
December 29, 2015 07:59
-
-
Save cnd/7640445 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (ref cfg, ref appCfg) = { | |
if nix { | |
let prefix = Path::new( getenv("XDG_CONFIG_HOME").unwrap_or(~"") ).join("Mirana"); | |
if !prefix.exists() { mkdir(&prefix, S_IRWXU as u32); } | |
( prefix.join( ".sync.conf" ), | |
prefix.join( ".mirana.conf" ) | |
) | |
} else { | |
let prefix = Path::new( getenv("HOME").unwrap_or(~"") ); | |
( prefix.join( "sync.conf" ), | |
prefix.join( "mirana.conf" ) | |
) | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment