Skip to content

Commit 5f46c7c

Browse files
authored
Pass Generator Config (#71)
1 parent 2aaf842 commit 5f46c7c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cppython/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def __init__(
250250

251251
self._interface = interface
252252

253-
generator_configuration = GeneratorConfiguration()
253+
generator_configuration = GeneratorConfiguration(root_path=self.configuration.root_path)
254254
self._generators = self._builder.create_generators(
255255
plugins, generator_configuration, self.project, self.cppython
256256
)

pdm.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/unit/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_generator_creation(self, mocker: MockerFixture):
108108
configuration = ProjectConfiguration(root_path=Path(), version="1.0.0")
109109
builder = ProjectBuilder(configuration)
110110

111-
generator_configuration = GeneratorConfiguration()
111+
generator_configuration = GeneratorConfiguration(root_path=configuration.root_path)
112112
generators = builder.create_generators([], generator_configuration, default_pep621, default_cppython_data)
113113

114114
assert not generators

0 commit comments

Comments
 (0)