Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1bb82f6
authored
Oct 16, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move pythoncom to initalize for virtio as well
parent
c6a76f3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
context.py
+2
-2
No files found.
context.py
View file @
e1bb82f6
...
@@ -38,12 +38,12 @@ def get_serial():
...
@@ -38,12 +38,12 @@ def get_serial():
port
=
None
port
=
None
if
system
==
'Windows'
:
if
system
==
'Windows'
:
port
=
_get_virtio_device
()
port
=
_get_virtio_device
()
import
pythoncom
pythoncom
.
CoInitialize
()
if
port
:
if
port
:
from
windows.win32virtio
import
SerialPort
from
windows.win32virtio
import
SerialPort
else
:
else
:
from
twisted.internet.serialport
import
SerialPort
from
twisted.internet.serialport
import
SerialPort
import
pythoncom
pythoncom
.
CoInitialize
()
port
=
r'\\.\COM1'
port
=
r'\\.\COM1'
elif
system
==
"Linux"
:
elif
system
==
"Linux"
:
port
=
"/dev/virtio-ports/agent"
port
=
"/dev/virtio-ports/agent"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment