Skip to content

Commit

Permalink
Merge pull request #4 from ccpgames/fix/pathlib-derp
Browse files Browse the repository at this point in the history
Version 5.1.2 - Pathlib Fix
  • Loading branch information
CCP-Zeulix authored Jul 2, 2024
2 parents de6d063 + 6197004 commit 92dd3b0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion neobuilder/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '5.1.1'
__version__ = '5.1.2'
3 changes: 2 additions & 1 deletion neobuilder/neobuilder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92dd3b0

Please sign in to comment.