fix issues with no test dir present (#2659) (#2724)

This commit is contained in:
Tomasz Drwięga
2016-10-19 18:33:04 +02:00
committed by Gav Wood
parent b078d71293
commit 1b36a2cd87
2 changed files with 11 additions and 4 deletions

View File

@@ -62,6 +62,13 @@ pub mod ethereum {
/// Default path for ethereum installation on Mac Os
pub fn default() -> PathBuf { super::config_path("Ethereum") }
/// Default path for ethereum installation (testnet)
pub fn test() -> PathBuf {
let mut path = default();
path.push("testnet");
path
}
/// Get the specific folder inside default ethereum installation
pub fn with_default(s: &str) -> PathBuf {
let mut path = default();