Helper to determine the node name of this machine.
(default='')
| 573 | return platform |
| 574 | |
| 575 | def _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 | |
| 590 | def _follow_symlinks(filepath): |
| 591 |