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

Allows relative paths for diagnostic scripts. #2329

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rbeucher
Copy link
Contributor

@rbeucher rbeucher commented Feb 9, 2024

Description

Closes #2328

Link to documentation:


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.77%. Comparing base (7e16883) to head (69c2c32).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2329   +/-   ##
=======================================
  Coverage   94.76%   94.77%           
=======================================
  Files         251      251           
  Lines       14280    14282    +2     
=======================================
+ Hits        13533    13536    +3     
+ Misses        747      746    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@valeriupredoi
Copy link
Contributor

@rbeucher would you be able to run pre-commit on this one please, mate? I'll have a look after - my sincere apologies, no idea why I made this PR wait for so long

@rbeucher
Copy link
Contributor Author

rbeucher commented Nov 5, 2024

@valeriupredoi , this one should be good to go

Copy link

@flicj191 flicj191 left a comment

Choose a reason for hiding this comment

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

I have tested and is working for me

# Try diagnostics_root
script_file = (
diagnostics_root / Path(script).expanduser()
).absolute()

Choose a reason for hiding this comment

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

should we add to the error message that another path was tried?
err_msg += f" or ({script_file})"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Allow usage of relative paths for diagnostic scripts
3 participants