Skip to content

Instantly share code, notes, and snippets.

@eddyb
Forked from cnd/gist:7640445
Created November 25, 2013 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddyb/7640491 to your computer and use it in GitHub Desktop.
Save eddyb/7640491 to your computer and use it in GitHub Desktop.
let (ref cfg, ref 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