Skip to content
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

Bugfix/startup node from relative path config #1042

Merged
merged 5 commits into from Feb 13, 2024

Conversation

bartvanb
Copy link
Member

@bartvanb bartvanb commented Feb 8, 2024

Fix #870

@@ -61,7 +61,7 @@ def from_external_config_file(
Node context object
"""
return super().from_external_config_file(
path, InstanceType.NODE, system_folders
os.path.abspath(path), InstanceType.NODE, system_folders
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the new object oriented way of doing this.
Path(path).resolve()

Note that this method raises a FileNotFoundError when the file does not exist (os.path.abspath returns an empty string).

@bartvanb bartvanb merged commit 05a950d into release/4.3 Feb 13, 2024
4 checks passed
@bartvanb bartvanb deleted the bugfix/startup-node-from-relative-path-config branch February 13, 2024 09:20
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

Successfully merging this pull request may close these issues.

None yet

2 participants