diff --git a/dbtools/__init__.py b/dbtools/__init__.py index b8683f1..cff5933 100644 --- a/dbtools/__init__.py +++ b/dbtools/__init__.py @@ -27,13 +27,13 @@ class dbObject: self.dbtype = SQLITE self.path = path - def __init__(self, dbtype = SQLITE, path = 'Database.db', host = None, port = None, user = None, pwd = None, db = None): + def __init__(self, dbtype = SQLITE, path = None, host = None, port = None, user = None, pwd = None, db = None): if dbtype == SQLITE: - self.initSQLite(path) + self.initSQLite(path or 'Database.db') elif dbtype == MYSQL: - self.initMySQL(host, port or 3306, user, pwd, db) + self.initMySQL(host or 'localhost', port or 3306, user, pwd, db) else: raise ValueError("Unknown database type %s." % str(dbtype))