mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 10:19:49 +00:00
Add check for Hardware Sniffer availability
This commit is contained in:
@@ -47,12 +47,15 @@ class OCPE:
|
||||
print("Q. Quit")
|
||||
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":
|
||||
self.u.exit_program()
|
||||
if user_input.lower() == "e":
|
||||
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")
|
||||
|
||||
self.u.head("Exporting Hardware Report")
|
||||
|
||||
Reference in New Issue
Block a user