-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #803 from scap3yvt/802-add-a-script-to-generate-in…
…formation-useful-for-debugging Added a script to generate information useful for debugging
- Loading branch information
Showing
5 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
import platform | ||
|
||
from GANDLF import __version__ | ||
from GANDLF.utils import get_git_hash | ||
|
||
|
||
if __name__ == "__main__": | ||
print(f"GANDLF version: {__version__}") | ||
print(f"Git hash: {get_git_hash()}") | ||
print(f"Platform: {platform.platform()}") | ||
print(f"Machine: {platform.machine()}") | ||
print(f"Processor: {platform.processor()}") | ||
print(f"Architecture: {(' ').join(list(platform.architecture()))}") | ||
print("Python environment:") | ||
print(f" Version: {platform.python_version()}") | ||
print(f" Implementation: {platform.python_implementation()}") | ||
print(f" Compiler: {platform.python_compiler()}") | ||
print(f" Build: {(' ').join(list(platform.python_build()))}") |