Commit cb660789 authored by olivier R-D's avatar olivier R-D

let user specify root node in path of command line

parent 2e8e5820
......@@ -84,7 +84,11 @@ def parse_args(parser, requirenodeid=False):
def get_node(client, args):
node = client.get_node(args.nodeid)
if args.path:
node = node.get_child(args.path.split(","))
path = args.path.split(",")
if node.nodeid == ua.NodeId(84, 0) and path[0] == "0:Root":
# let user specify root if not node given
path = path[1:]
node = node.get_child(path)
return node
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment