mirror of
				https://github.com/liberatedsystems/Sideband_CE.git
				synced 2024-09-03 04:13:27 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			388 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			388 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| '''
 | |
| Module of MacOSX API for plyer.devicename.
 | |
| '''
 | |
| 
 | |
| import socket
 | |
| from 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()
 |