X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fexamples%2Fexample-api-test.py;h=1bdea6cc7eec63a80b2b848f2cd858469af25892;hb=62c4fc67ea53c46da135f0e91cbd31f722817289;hp=5410d2c26a3112331ffe94a3528af20a8740f6e2;hpb=be5a4e673f4603dd4867e945ee6054de41be78c2;p=babeltrace.git diff --git a/bindings/python/examples/example-api-test.py b/bindings/python/examples/example-api-test.py index 5410d2c2..1bdea6cc 100644 --- a/bindings/python/examples/example-api-test.py +++ b/bindings/python/examples/example-api-test.py @@ -29,14 +29,15 @@ # to partially test the api. import sys -from babeltrace import * +import babeltrace.reader + # Check for path arg: if len(sys.argv) < 2: raise TypeError("Usage: python example-api-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")