MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / gma

Function gma

actions/scanning.py:42–53  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

40 Console = Table = Text = Progress = None
41# MAC address getter with fallback
42def gma(*args, **kwargs):
43 try:
44 from getmac import get_mac_address
45 result = get_mac_address(*args, **kwargs)
46 return result if result else '00:00:00:00:00:00'
47 except ImportError:
48 try:
49 import getmac
50 result = getmac.get_mac_address(*args, **kwargs)
51 return result if result else '00:00:00:00:00:00'
52 except (ImportError, AttributeError):
53 return '00:00:00:00:00:00'
54import sys
55sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
56from shared import SharedData

Callers 2

get_mac_addressMethod · 0.85
scanMethod · 0.85

Calls 2

get_mac_addressFunction · 0.90
get_mac_addressMethod · 0.80

Tested by

no test coverage detected