Initial commit
This commit is contained in:
32
aore/config.py
Normal file
32
aore/config.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from platform import system
|
||||
|
||||
config_type = "production"
|
||||
if "Windows" in system():
|
||||
config_type = "test"
|
||||
|
||||
DB_INSTANCES = dict(
|
||||
test=dict(
|
||||
host="localhost",
|
||||
user="postgres",
|
||||
password="intercon",
|
||||
database="postgres",
|
||||
),
|
||||
production=dict(
|
||||
host="localhost",
|
||||
user="postgres",
|
||||
password="intercon",
|
||||
database="postgres",
|
||||
)
|
||||
)
|
||||
|
||||
UNRAR_PATHES = dict(
|
||||
test="C:\Program Files (x86)\WinRAR\unrar.exe",
|
||||
production="unrar"
|
||||
)
|
||||
|
||||
# Main section
|
||||
db = DB_INSTANCES[config_type]
|
||||
unrar = UNRAR_PATHES[config_type]
|
||||
trashfolder = "files/"
|
||||
Reference in New Issue
Block a user