Fix serve path failing to be absolute when given as a relative path

This commit is contained in:
Lucien Greathouse
2017-12-14 01:08:05 -08:00
parent 7c6fe38346
commit b4e31ea35d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# Rojo Change Log
## Current Master
* *No changes*
* Fixed `rojo serve` failing to correctly construct an absolute root path when passed as an argument
## 0.3.1
* Improved error reporting when invalid JSON is found in a `rojo.json` project

View File

@@ -85,7 +85,7 @@ fn main() {
let sub_matches = sub_matches.unwrap();
let project_path = match sub_matches.value_of("PROJECT") {
Some(v) => PathBuf::from(v),
Some(v) => canonicalish(PathBuf::from(v)),
None => std::env::current_dir().unwrap(),
};