Python: examples: import explicit BT modules
[babeltrace.git] / bindings / python / examples / sequence_test.py
index 8bd2c749c026a8f9266683c12915e4ad05fcc5c4..e9116ced652080bb02cb55f7b02284491d1cd87c 100644 (file)
 # to partially test the sequence API
 
 import sys
-from babeltrace import *
+import babeltrace.reader
+
 
 # Check for path arg:
 if len(sys.argv) < 2:
     raise TypeError("Usage: sequence_test.py path/to/file")
 
 # Create TraceCollection and add trace:
-traces = TraceCollection()
+traces = babeltrace.reader.TraceCollection()
 trace_handle = traces.add_trace(sys.argv[1], "ctf")
 if trace_handle is None:
     raise IOError("Error adding trace")
This page took 0.023247 seconds and 4 git commands to generate.