diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ede06c..11ff1ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.1.2] - 2024-07-02 + +### Fixed + +- An issue with the last fix where, if the build root is a relative path, we'll + end up getting an exception because we can't find how one path is relative to 7 + another if one of them is absolute and the other is relative. + ## [5.1.1] - 2024-06-28 diff --git a/neobuilder/__init__.py b/neobuilder/__init__.py index 40f5033..deda00e 100644 --- a/neobuilder/__init__.py +++ b/neobuilder/__init__.py @@ -1 +1 @@ -__version__ = '5.1.1' +__version__ = '5.1.2' diff --git a/neobuilder/neobuilder/__init__.py b/neobuilder/neobuilder/__init__.py index 7447f7a..84dfaa7 100644 --- a/neobuilder/neobuilder/__init__.py +++ b/neobuilder/neobuilder/__init__.py @@ -389,8 +389,9 @@ def add_everything(self): line_buffer = [] broot = pathlib.Path(self.build_root).absolute() + bpath = pathlib.Path(self.build_path).absolute() - for (dirpath, dirnames, filenames) in os.walk(self.build_path): + for (dirpath, dirnames, filenames) in os.walk(bpath): for f in filenames: if f.endswith('.py') and not f.endswith('__.py'): fpath = pathlib.Path(dirpath) / f