Skip to content

DSDLDefinition object fails when Paths with relative path parts are provided. #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thirtytwobits opened this issue Dec 10, 2024 · 0 comments

Comments

@thirtytwobits
Copy link
Member

Give a real dsdl file:

dsdl_file

This will fail with an InvalidDefinitionError

actual_root = Path(str(dsdl_file.parent) + "/..")

target_definition = DSDLDefinition(actual_root / dsdl_file.parent / dsdl_file.name, actual_root)

DSDLDefinition needs to resolve() its inputs first.

thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Dec 10, 2024
Resolve inputs into DSDLDefinition constructor
thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Dec 10, 2024
Resolve inputs into DSDLDefinition constructor
thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Dec 10, 2024
Resolve inputs into DSDLDefinition constructor
thirtytwobits added a commit that referenced this issue Dec 11, 2024
Resolve inputs into DSDLDefinition constructor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant