mirror of
https://github.com/markqvist/Sideband.git
synced 2024-10-01 03:15:37 -04:00
24 lines
394 B
Python
24 lines
394 B
Python
'''
|
|
Module of MacOSX API for plyer.devicename.
|
|
'''
|
|
|
|
import socket
|
|
from sbapp.plyer.facades import DeviceName
|
|
|
|
|
|
class OSXDeviceName(DeviceName):
|
|
'''
|
|
Implementation of MacOSX DeviceName API.
|
|
'''
|
|
|
|
def _get_device_name(self):
|
|
hostname = socket.gethostname()
|
|
return hostname
|
|
|
|
|
|
def instance():
|
|
'''
|
|
Instance for facade proxy.
|
|
'''
|
|
return OSXDeviceName()
|