Skip to content

Commit 2c1b8c9

Browse files
committed
changing from os to platform for better system data coverage
1 parent f1f54f2 commit 2c1b8c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tmuxp/cli.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import logging
1111
import os
12+
import platform
1213
import sys
1314

1415
import click
@@ -1099,10 +1100,10 @@ def format_tmux_resp(std_resp):
10991100
% '\n'.join(
11001101
prepend_tab(
11011102
[
1102-
'system: %s' % os.uname().sysname,
1103-
'arch: %s' % os.uname().machine,
1104-
'os: {0} {1}'.format(os.uname().nodename, os.uname().version),
1105-
'kernel: %s' % os.uname().release,
1103+
'dist: %s' % platform.platform(),
1104+
'arch: %s' % platform.machine(),
1105+
'uname: %s' % '; '.join(platform.uname()[:4]),
1106+
'version: %s' % platform.version(),
11061107
]
11071108
)
11081109
),

0 commit comments

Comments
 (0)