1from __future__ import print_function 2import RMF 3RMF.set_log_level("trace") 4for suffix in RMF.suffixes: 5 path = RMF._get_temporary_file_path("dag." + suffix) 6 print(path) 7 f = RMF.create_rmf_file(path) 8 root = f.get_root_node() 9 ch = root.add_child("hi", RMF.REPRESENTATION) 10 chch = ch.add_child("there", RMF.REPRESENTATION) 11 root.add_child(chch) 12 RMF.show_hierarchy(root) 13 RMF.show_info(f) 14 15 del f 16 del root 17 del ch 18 del chch 19 20 f = RMF.open_rmf_file_read_only(path) 21