"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 1997-2014 PhiloSoft Design"
+__copyright__ = "Copyright (C) 1997-2017 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['import_robot', 'robot']
robot_name, robot_params = parse_params(environ.get("BKMK_ROBOT", "forking"))
def import_robot(robot_name):
- exec "from Robots import bkmk_r%s" % robot_name
- exec "robot = bkmk_r%s.robot_%s" % (robot_name, robot_name)
+ exec("from Robots import bkmk_r%s" % robot_name)
+ exec("robot = bkmk_r%s.robot_%s" % (robot_name, robot_name))
return robot
robot = import_robot(robot_name)
"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 1997-2014 PhiloSoft Design"
+__copyright__ = "Copyright (C) 1997-2017 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['import_storage', 'storage']
storage_name, storage_params = parse_params(environ.get("BKMK_STORAGE", "pickle"))
def import_storage(storage_name):
- exec "from Storage import bkmk_st%s" % storage_name
- exec "storage = bkmk_st%s.storage_%s" % (storage_name, storage_name)
+ exec("from Storage import bkmk_st%s" % storage_name)
+ exec("storage = bkmk_st%s.storage_%s" % (storage_name, storage_name))
return storage
storage = import_storage(storage_name)
"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 1997-2014 PhiloSoft Design"
+__copyright__ = "Copyright (C) 1997-2017 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['import_writer', 'writer']
writer_name, writer_params = parse_params(environ.get("BKMK_WRITER", "html"))
def import_writer(writer_name):
- exec "from Writers import bkmk_w%s" % writer_name
- exec "writer = bkmk_w%s.writer_%s" % (writer_name, writer_name)
+ exec("from Writers import bkmk_w%s" % writer_name)
+ exec("writer = bkmk_w%s.writer_%s" % (writer_name, writer_name))
return writer
writer = import_writer(writer_name)