mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Add check for Hardware Sniffer availability
This commit is contained in:
+4
-1
@@ -47,12 +47,15 @@ class OCPE:
|
|||||||
print("Q. Quit")
|
print("Q. Quit")
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
user_input = self.u.request_input("Drag and drop your hardware report here (.JSON) or type \"E\" to export: ")
|
user_input = self.u.request_input("Drag and drop your hardware report here (.JSON){}: ".format(" or type \"E\" to export" if os.name == "nt" else ""))
|
||||||
if user_input.lower() == "q":
|
if user_input.lower() == "q":
|
||||||
self.u.exit_program()
|
self.u.exit_program()
|
||||||
if user_input.lower() == "e":
|
if user_input.lower() == "e":
|
||||||
hardware_sniffer = self.o.gather_hardware_sniffer()
|
hardware_sniffer = self.o.gather_hardware_sniffer()
|
||||||
|
|
||||||
|
if not hardware_sniffer:
|
||||||
|
continue
|
||||||
|
|
||||||
report_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "SysReport")
|
report_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "SysReport")
|
||||||
|
|
||||||
self.u.head("Exporting Hardware Report")
|
self.u.head("Exporting Hardware Report")
|
||||||
|
|||||||
Reference in New Issue
Block a user