Commit fdcd5744 authored by Benoit ZERR's avatar Benoit ZERR
Browse files

Update trex.py to work with Windows10 on simulation

parent ccfd6e68
......@@ -7,7 +7,7 @@
import struct
from collections import OrderedDict
import fcntl
#import fcntl # non existing on Windows10
import time
# from stackoverflow, it's safer to proxy dict rather than subclassing it
......@@ -113,6 +113,7 @@ class TrexIO():
pass
else:
import crcmod
import fcntl
self.__i2c_fd ={
"in": open("/dev/i2c-"+str(bus_nb), 'rb', buffering=0),
"out": open("/dev/i2c-"+str(bus_nb), 'wb', buffering=0)
......
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 to comment