Commit 91234807 authored by anonym's avatar anonym
Browse files

Assure uniqness among import/init lines.

I've seen instances where `config.searchShowingOnly` is set multiple
times, which makes sense -- we add it for each component.
parent 3239f415
......@@ -131,7 +131,9 @@ module Dogtail
'from dogtail import tree',
'from dogtail.config import config',
]
@module_import_lines.uniq!
@init_lines = ['config.searchShowingOnly = True'] + @init_lines
@init_lines.uniq!
end
TREE_API_NODE_METHODS.each do |method|
......
Supports Markdown
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