- added a global const to config to point to "database" directory

- adjusted fpdb_db.py to make use use of this const
This commit is contained in:
fpdb-mme
2009-11-03 10:50:13 +01:00
parent a18091161a
commit 62c915928d
2 changed files with 9 additions and 5 deletions
+4
View File
@@ -50,6 +50,10 @@ log.debug("config logger initialised")
APPLICATION_NAME_SHORT = 'fpdb'
APPLICATION_VERSION = 'xx.xx.xx'
DIR_SELF = os.path.dirname(os.path.abspath(__file__))
#TODO: imo no good idea to place 'database' in parent dir
DIR_DATABASES = os.path.join(os.path.dirname(DIR_SELF), 'database')
DATABASE_TYPE_POSTGRESQL = 'postgresql'
DATABASE_TYPE_SQLITE = 'sqlite'
DATABASE_TYPE_MYSQL = 'mysql'