-def obey_lines_in_file(path, name):
- """Call obey() on each line of path's file, use name in input prefix."""
- file = open(io_db["path_worldconf"], "r")
+def obey_lines_in_file(path, name, break_test = None):
+ """Call obey() on each line of path's file, use name in input prefix.
+
+ If break_test function is set, only read the file until it returns True.
+ """
+ file = open(path, "r")