mirror of
				https://github.com/liberatedsystems/openCom-Companion.git
				synced 2025-07-08 05:07:21 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			390 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			390 B
		
	
	
	
		
			Python
		
	
	
	
	
	
'''
 | 
						|
Module of Win API for plyer.devicename.
 | 
						|
'''
 | 
						|
 | 
						|
import socket
 | 
						|
from sbapp.plyer.facades import DeviceName
 | 
						|
 | 
						|
 | 
						|
class WinDeviceName(DeviceName):
 | 
						|
    '''
 | 
						|
    Implementation of Linux DeviceName API.
 | 
						|
    '''
 | 
						|
 | 
						|
    def _get_device_name(self):
 | 
						|
        hostname = socket.gethostname()
 | 
						|
        return hostname
 | 
						|
 | 
						|
 | 
						|
def instance():
 | 
						|
    '''
 | 
						|
    Instance for facade proxy.
 | 
						|
    '''
 | 
						|
    return WinDeviceName()
 |