mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
This commit is contained in:
parent
5239caf835
commit
3f4d59eb21
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@ def _find_mac(command, arg, hw_identifiers, get_index):
|
|||
|
||||
def _ifconfig_getnode():
|
||||
"""Get the hardware address on Unix by running ifconfig."""
|
||||
import os
|
||||
|
||||
# This works on Linux ('' or '-a'), Tru64 ('-av'), but not all Unixes.
|
||||
for args in ('', '-a', '-av'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue