1 """Thin wrapper for module Robots. Provides "default" robot
3 This file is a part of Bookmarks database and Internet robot.
6 __author__ = "Oleg Broytman <phd@phdru.name>"
7 __copyright__ = "Copyright (C) 1997-2012 PhiloSoft Design"
8 __license__ = "GNU GPL"
10 __all__ = ['import_robot', 'robot']
13 from os import environ
14 robot_name = environ.get("BKMK_ROBOT", "forking")
16 def import_robot(robot_name):
17 exec "from Robots import bkmk_r%s" % robot_name
18 exec "robot = bkmk_r%s.robot_%s" % (robot_name, robot_name)
21 robot = import_robot(robot_name)