Commit c6a76f3f by Bach Dániel

fix imports

parent 38b14478
...@@ -41,7 +41,7 @@ def get_serial(): ...@@ -41,7 +41,7 @@ def get_serial():
if port: if port:
from windows.win32virtio import SerialPort from windows.win32virtio import SerialPort
else: else:
from twisted.internet.serial import SerialPort from twisted.internet.serialport import SerialPort
import pythoncom import pythoncom
pythoncom.CoInitialize() pythoncom.CoInitialize()
port = r'\\.\COM1' port = r'\\.\COM1'
...@@ -50,7 +50,7 @@ def get_serial(): ...@@ -50,7 +50,7 @@ def get_serial():
if exists(port): if exists(port):
from linux.posixvirtio import SerialPort from linux.posixvirtio import SerialPort
else: else:
from twisted.internet.serial import SerialPort from twisted.internet.serialport import SerialPort
port = '/dev/ttyS0' port = '/dev/ttyS0'
else: else:
raise NotImplementedError("Platform %s is not supported.", system) raise NotImplementedError("Platform %s is not supported.", system)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment