Initial commit

This commit is contained in:
Jack Stdin
2016-01-12 19:07:57 +03:00
commit 7f65705742
15 changed files with 474 additions and 0 deletions

32
aore/config.py Normal file
View 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/"