Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Python3: resources and libraries
[csit.git]
/
resources
/
tools
/
trex
/
trex_server_info.py
diff --git
a/resources/tools/trex/trex_server_info.py
b/resources/tools/trex/trex_server_info.py
index
b957495
..
e74a63e
100755
(executable)
--- a/
resources/tools/trex/trex_server_info.py
+++ b/
resources/tools/trex/trex_server_info.py
@@
-28,10
+28,12
@@
Functionality:
import sys
import sys
-sys.path.insert(0, "/opt/trex-core-2.61/scripts/automation/"+\
- "trex_control_plane/interactive/")
+sys.path.insert(
+ 0, u"/opt/trex-core-2.61/scripts/automation/trex_control_plane/interactive/"
+)
from trex.stl.api import *
from trex.stl.api import *
+
def main():
"""Check server info and quit."""
client = STLClient()
def main():
"""Check server info and quit."""
client = STLClient()
@@
-48,5
+50,5
@@
def main():
client.disconnect()
client.disconnect()
-if __name__ == "__main__":
+if __name__ ==
u
"__main__":
main()
main()