payu support command to print modules and machine info.#710
payu support command to print modules and machine info.#710Qian-HuiChen wants to merge 1 commit intopayu-org:masterfrom
payu support command to print modules and machine info.#710Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #710 +/- ##
==========================================
+ Coverage 63.70% 63.88% +0.18%
==========================================
Files 67 68 +1
Lines 5554 5588 +34
==========================================
+ Hits 3538 3570 +32
- Misses 2016 2018 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add unit tests.
8ac4772 to
2de940f
Compare
|
I know I was the one who suggested https://docs.python.org/3.14/library/platform.html Rather than suggest specific changes I thought I'd just point to it and let you have a look and decide if you wanted to use that to replace some of the code. |
I can definitely do that. I was exploring the platform package this morning and used it to mimic the |
It is more standard, so it insulates the code from underlying changes in operating system implementation. So from that point alone it is probably worth doing. Plus it has nice functions to return python versions which doesn't require logic to parse and split. |
Thanks to @CodeGat 's suggestion!
This PR creates a
payu supportcommand which prints out some system information for troubleshooting and support requests.Example of usage: