Implemented paths config module
Implemented paths config module Partially Implements: blueprint centralise-config-opts Change-Id: I2b779fb1ce552567feac678cb5bd78aad0d53d52
This commit is contained in:
committed by
David TARDIVEL
parent
ac6848dad3
commit
5c79074e9c
@@ -17,23 +17,9 @@
|
||||
|
||||
import os
|
||||
|
||||
from oslo_config import cfg
|
||||
from watcher import conf
|
||||
|
||||
PATH_OPTS = [
|
||||
cfg.StrOpt('pybasedir',
|
||||
default=os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'../')),
|
||||
help='Directory where the watcher python module is installed.'),
|
||||
cfg.StrOpt('bindir',
|
||||
default='$pybasedir/bin',
|
||||
help='Directory where watcher binaries are installed.'),
|
||||
cfg.StrOpt('state_path',
|
||||
default='$pybasedir',
|
||||
help="Top-level directory for maintaining watcher's state."),
|
||||
]
|
||||
|
||||
CONF = cfg.CONF
|
||||
CONF.register_opts(PATH_OPTS)
|
||||
CONF = conf.CONF
|
||||
|
||||
|
||||
def basedir_def(*args):
|
||||
|
||||
Reference in New Issue
Block a user