Python os
.
, python , AppleInterfaceStyle
.
import os
has_interface = os.popen("defaults find AppleInterfaceStyle").read()
if not has_interface:
print("Use a light Style")
else:
interface_system = os.popen("defaults read -g AppleInterfaceStyle").read()
print("Interface Style:" + interface_system)