- Getting the current file's path and join

with the migrations

Change-Id: I4a8ed51850acfb7317659564519797727189063a
This commit is contained in:
tonytan4ever 2015-03-03 17:14:07 -05:00
parent 2b02db9332
commit 91aaf1830b
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@
"""Cassandra storage driver implementation."""
import multiprocessing
import os
import ssl
import cassandra
@ -64,7 +65,7 @@ CASSANDRA_OPTIONS = [
),
cfg.StrOpt(
'migrations_path',
default='./poppy/storage/cassandra/migrations',
default=os.path.join(os.path.dirname(__file__), 'migrations'),
help='Path to directory containing CQL migration scripts',
),
cfg.BoolOpt('archive_on_delete', default=True,

View File

@ -55,7 +55,7 @@ commands = {posargs}
[flake8]
builtins = __CDN_SETUP__
exclude = .venv*,venv*,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*.egg,.update-venv
exclude = build,.venv*,venv*,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*.egg,.update-venv
[hacking]
import_exceptions = poppy.openstack.common.gettextutils._