only import platform if needed
@@ -2,7 +2,6 @@ import argparse
import glob
import json
import os
-import platform
import socket
import sys
import threading
@@ -283,6 +282,7 @@ def send_command():
options.command = 'refresh_all'
if options.version:
+ import platform
print('py3status-command version {} (python {})'.format(
version, platform.python_version()
))
