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

Stop using __file__ outside tests #4797

Merged
merged 7 commits into from Sep 24, 2023

Conversation

jenshnielsen
Copy link
Collaborator

This replaces the remaining use of __file__ with files from imporlib.resources in qcodes outside of the tests.

Note that there is a trade off here as we now have hardcoded the path to config and monitor dist files in the python file rather than the relative path to that file. I think its cleaner to hardcode the full path but I could see the argument the other way around too.

qcodes/_version.py Outdated Show resolved Hide resolved
qcodes/configuration/config.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Merging #4797 (82f57cf) into master (fb1a5fa) will decrease coverage by 0.01%.
Report is 3 commits behind head on master.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #4797      +/-   ##
==========================================
- Coverage   68.14%   68.14%   -0.01%     
==========================================
  Files         341      341              
  Lines       29845    29853       +8     
==========================================
+ Hits        20339    20344       +5     
- Misses       9506     9509       +3     

@jenshnielsen jenshnielsen added this pull request to the merge queue Sep 24, 2023
Merged via the queue into microsoft:master with commit ee569af Sep 24, 2023
12 of 15 checks passed
@jenshnielsen jenshnielsen deleted the use_imporlib_resources branch September 24, 2023 07:38
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