mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Add missing import.
This commit is contained in:
parent
f40855a203
commit
f02016e9e4
1 changed files with 1 additions and 0 deletions
|
@ -261,6 +261,7 @@ class USBPrinterManager(QObject, SignalEmitter, Extension):
|
|||
def getSerialPortList(self,only_list_usb=False):
|
||||
base_list=[]
|
||||
if platform.system() == "Windows":
|
||||
import _winreg
|
||||
try:
|
||||
key=_winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,"HARDWARE\\DEVICEMAP\\SERIALCOMM")
|
||||
i=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue