Skip to content

Instantly share code, notes, and snippets.

@Kimundi
Forked from cnd/gist:7640445
Created November 25, 2013 12:18
Show Gist options
  • Save Kimundi/7640453 to your computer and use it in GitHub Desktop.
Save Kimundi/7640453 to your computer and use it in GitHub Desktop.
let (cfg, appCfg) = if nix {(
& Path::new ( "~/.Sync.conf" ) ,
& Path::new ( "~/.Mirana.conf" )
)} else {
let prefix = getenv("HOME").unwrap_or(~"");
(
& Path::new ( prefix + "~/.Sync.conf" ),
& Path::new ( prefix + "~/.Mirana.conf" )
)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment