def setup_db_config(self, dbdir):
        from samba.provision import setup_path
        if not os.path.isdir(os.path.join(dbdir, "bdb-logs")):
            os.makedirs(os.path.join(dbdir, "bdb-logs"), 0700)
            if not os.path.isdir(os.path.join(dbdir, "tmp")):
                os.makedirs(os.path.join(dbdir, "tmp"), 0700)

        setup_file(setup_path("DB_CONFIG"),
            os.path.join(dbdir, "DB_CONFIG"), {"LDAPDBDIR": dbdir})
Return a JSON representation of a Python string
dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/provision/backend.py/OpenLDAPBackend.setup_db_config--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/utils/simplejson/encoder.py/encode_basestring