1import uio 2import usys 3 4try: 5 uio.resource_stream 6except AttributeError: 7 print("SKIP") 8 raise SystemExit 9 10buf = uio.resource_stream("data", "file2") 11print(buf.read()) 12 13# resource_stream(None, ...) look ups from current dir, hence sys.path[0] hack 14buf = uio.resource_stream(None, usys.path[0] + "/data/file2") 15print(buf.read()) 16