Commented the current code.
The output directory is now also set at the start.
This commit is contained in:
@ -5,6 +5,7 @@ extern crate mason;
|
||||
|
||||
|
||||
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use mason::Processor;
|
||||
@ -48,7 +49,21 @@ pub fn main()
|
||||
|
||||
None =>
|
||||
{
|
||||
output_dir = PathBuf::new();
|
||||
// Try to just get the current directory.
|
||||
match env::current_dir()
|
||||
{
|
||||
Ok(dir) =>
|
||||
{
|
||||
output_dir = PathBuf::from(dir);
|
||||
}
|
||||
|
||||
Err(error) =>
|
||||
{
|
||||
// Then just default to "".
|
||||
warn!("{}", error);
|
||||
output_dir = PathBuf::new();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user