Skip to content

Commit

Permalink
KRKNWK-13516: Fix depreciation warning with extcap interface
Browse files Browse the repository at this point in the history
The distutils package is deprecated in newer Python versions.
The only user of distutils package is `get_hex_path`.

The `get_hex_path` method to retrieve the path to sniffer HEX file
was removed, because there are no known users of that functionality.

Signed-off-by: Rafał Kuźnia <[email protected]>
  • Loading branch information
e-rk committed Mar 25, 2022
1 parent 9fa8619 commit 1f1cab8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions nrf802154_sniffer/nrf802154_sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import logging
from argparse import ArgumentParser
from binascii import a2b_hex
from distutils.sysconfig import get_python_lib
from serial import Serial, serialutil
from serial.tools.list_ports import comports

Expand Down Expand Up @@ -180,14 +179,6 @@ def stop_sig_handler(self, *args, **kwargs):
self.serial.close()
self.serial = None

@staticmethod
def get_hex_path():
"""Helper method to get hex file path with nrf802154_sniffer firmware.
:return path to hex file with nrf802154_sniffer firmware
"""

return os.path.join(get_python_lib(), 'nrf802154_sniffer', 'nrf802154_sniffer.hex')

@staticmethod
def extcap_interfaces():
"""
Expand Down

0 comments on commit 1f1cab8

Please sign in to comment.