diff --git a/attachment_downloader/version_info.py b/attachment_downloader/version_info.py index 1ca0e1a..ba3d4cf 100644 --- a/attachment_downloader/version_info.py +++ b/attachment_downloader/version_info.py @@ -1,4 +1,5 @@ import os +import platform VERSION_FILENAME = os.path.abspath(os.path.join(os.path.dirname(__file__), 'version.py')) import subprocess @@ -29,3 +30,8 @@ def get(retry=True): Version.generate() return Version.get(False) return 'unknown' + + @staticmethod + def get_env_info(): + os = f"Release: {platform.release()}, Platform: {platform.platform()}" + return f"(Python: {platform.python_version()}), OS: ({os})" diff --git a/bin/attachment-downloader b/bin/attachment-downloader index 07919f4..69a5625 100755 --- a/bin/attachment-downloader +++ b/bin/attachment-downloader @@ -16,7 +16,7 @@ from attachment_downloader.version_info import Version if __name__ == '__main__': Logger.setup() - logging.info(f'Attachment Downloader - Version: {Version.get()}') + logging.info(f'Attachment Downloader - Version: {Version.get()} {Version.get_env_info()}') if sys.version_info[0] < 3: logging.error("This application requires Python 3+, you are running version: %s", sys.version)