Helper to determine the node name of this machine.
(default='')
| 686 | return platform |
| 687 | |
| 688 | def _node(default=''): |
| 689 | |
| 690 | """ Helper to determine the node name of this machine. |
| 691 | """ |
| 692 | try: |
| 693 | import socket |
| 694 | except ImportError: |
| 695 | # No sockets... |
| 696 | return default |
| 697 | try: |
| 698 | return socket.gethostname() |
| 699 | except OSError: |
| 700 | # Still not working... |
| 701 | return default |
| 702 | |
| 703 | def _follow_symlinks(filepath): |
| 704 |