Skip to content

Commit

Permalink
Merge pull request #280 from webern/canonicalize-project-path
Browse files Browse the repository at this point in the history
twoliter: allow relative project path
  • Loading branch information
webern authored Jun 11, 2024
2 parents 6bc12b5 + 007361b commit e31e20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twoliter/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub(crate) struct Project {
impl Project {
/// Load a `Twoliter.toml` file from the given file path (it can have any filename).
pub(crate) async fn load<P: AsRef<Path>>(path: P) -> Result<Self> {
let path = path.as_ref();
let path = fs::canonicalize(path).await?;
let data = fs::read_to_string(&path)
.await
.context(format!("Unable to read project file '{}'", path.display()))?;
Expand Down

0 comments on commit e31e20f

Please sign in to comment.