Старый postinstall
This commit is contained in:
commit
4337a3f94e
349 changed files with 21945 additions and 0 deletions
9
build/lib/tests/__init__.py
Normal file
9
build/lib/tests/__init__.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import subprocess
|
||||
|
||||
|
||||
def get_network_interfaces():
|
||||
interfaces = str.split(subprocess.run(["ls", "/sys/class/net/"], capture_output=True, text=True).stdout, "\n")
|
||||
return interfaces[:-1]
|
||||
|
||||
|
||||
get_network_interfaces()
|
||||
Loading…
Add table
Add a link
Reference in a new issue