"""
Settings for simpsons-scripts
"""

from path import path
import os
import sys

#Various paths
PROJECT_PATH = path(__file__).dirname().dirname()

#Where the audio tracks for simpsons episodes are
AUDIO_BASE_PATH = ""
AUDIO_DIR = os.path.abspath(os.path.join(AUDIO_BASE_PATH, "audio"))

#Audio processing options
ONLY_LABELLED_LINES = False
PROCESSED_FILES_LIMIT = 3

#Where to cache values during the run
CACHE = "percept.fields.caches.MemoryCache"
#Do we use json to serialize the values in in the cache?
SERIALIZE_CACHE_VALUES = False

#How to run the workflows
RUNNER = "percept.workflows.runners.SingleThreadedRunner"

#What to use as a datastore
DATASTORE = "percept.workflows.datastores.FileStore"

#Namespace to give the modules in the registry
NAMESPACE = "simpsons-scripts"

#What severity of error to log to file and console.  One of "DEBUG", "WARN", "INFO", "ERROR"
LOG_LEVEL = "DEBUG"

#Used to save and retrieve workflows and other data
DATA_PATH = os.path.abspath(os.path.join(PROJECT_PATH, "stored_data"))
if not os.path.exists(DATA_PATH):
    os.makedirs(DATA_PATH)

#Commands are discovered here, and tasks/inputs/formats are imported using only these modules
INSTALLED_APPS = [
    'simpsons-scripts.inputs',
    'simpsons-scripts.formatters',
    'simpsons-scripts.tasks',
    'simpsons-scripts.workflows'
]
"""
Settings for simpsons-scripts
"""

from path import path
import os
import sys

#Various paths
PROJECT_PATH = path(__file__).dirname().dirname()

#Where the audio tracks for simpsons episodes are
AUDIO_BASE_PATH = ""
AUDIO_DIR = os.path.abspath(os.path.join(AUDIO_BASE_PATH, "audio"))

#Audio processing options
ONLY_LABELLED_LINES = False
PROCESSED_FILES_LIMIT = 3

#Where to cache values during the run
CACHE = "percept.fields.caches.MemoryCache"
#Do we use json to serialize the values in in the cache?
SERIALIZE_CACHE_VALUES = False

#How to run the workflows
RUNNER = "percept.workflows.runners.SingleThreadedRunner"

#What to use as a datastore
DATASTORE = "percept.workflows.datastores.FileStore"

#Namespace to give the modules in the registry
NAMESPACE = "simpsons-scripts"

#What severity of error to log to file and console.  One of "DEBUG", "WARN", "INFO", "ERROR"
LOG_LEVEL = "DEBUG"

#Used to save and retrieve workflows and other data
DATA_PATH = os.path.abspath(os.path.join(PROJECT_PATH, "stored_data"))
if not os.path.exists(DATA_PATH):
    os.makedirs(DATA_PATH)

#Commands are discovered here, and tasks/inputs/formats are imported using only these modules
INSTALLED_APPS = [
    'simpsons-scripts.inputs',
    'simpsons-scripts.formatters',
    'simpsons-scripts.tasks',
    'simpsons-scripts.workflows'
]
Settings for simpsons-scripts #Various paths #Where the audio tracks for simpsons episodes are #Audio processing options #Where to cache values during the run #Do we use json to serialize the values in in the cache? #How to run the workflows #What to use as a datastore #Namespace to give the modules in the registry #What severity of error to log to file and console.  One of "DEBUG", "WARN", "INFO", "ERROR" #Used to save and retrieve workflows and other data #Commands are discovered here, and tasks/inputs/formats are imported using only these modules