(*args, **kwargs)
| 40 | Console = Table = Text = Progress = None |
| 41 | # MAC address getter with fallback |
| 42 | def 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' |
| 54 | import sys |
| 55 | sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
| 56 | from shared import SharedData |
no test coverage detected