MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _node

Function _node

tools/python-3.11.9-amd64/Lib/platform.py:575–588  ·  view source on GitHub ↗

Helper to determine the node name of this machine.

(default='')

Source from the content-addressed store, hash-verified

573 return platform
574
575def _node(default=''):
576
577 """ Helper to determine the node name of this machine.
578 """
579 try:
580 import socket
581 except ImportError:
582 # No sockets...
583 return default
584 try:
585 return socket.gethostname()
586 except OSError:
587 # Still not working...
588 return default
589
590def _follow_symlinks(filepath):
591

Callers 1

unameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected