Skip to content

Commit 6197004

Browse files
committed
## [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.
1 parent de6d063 commit 6197004

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.1.2] - 2024-07-02
9+
10+
### Fixed
11+
12+
- An issue with the last fix where, if the build root is a relative path, we'll
13+
end up getting an exception because we can't find how one path is relative to 7
14+
another if one of them is absolute and the other is relative.
15+
816

917
## [5.1.1] - 2024-06-28
1018

neobuilder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '5.1.1'
1+
__version__ = '5.1.2'

neobuilder/neobuilder/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,9 @@ def add_everything(self):
389389
line_buffer = []
390390

391391
broot = pathlib.Path(self.build_root).absolute()
392+
bpath = pathlib.Path(self.build_path).absolute()
392393

393-
for (dirpath, dirnames, filenames) in os.walk(self.build_path):
394+
for (dirpath, dirnames, filenames) in os.walk(bpath):
394395
for f in filenames:
395396
if f.endswith('.py') and not f.endswith('__.py'):
396397
fpath = pathlib.Path(dirpath) / f

0 commit comments

Comments
 (0)