1 """Thin wrapper for module Writers. Provides "default" writer
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_writer', 'writer']
13 from os import environ
14 writer_name = environ.get("BKMK_WRITER", "html")
16 def import_writer(writer_name):
17 exec "from Writers import bkmk_w%s" % writer_name
18 exec "writer = bkmk_w%s.writer_%s" % (writer_name, writer_name)
21 writer = import_writer(writer_name)