tuning-box/tuning_box/__init__.py
Yuriy Taraday d66ed0922d Move migration dir determination to common module
Also use it instead of __file__ magic in nailgun module.

Change-Id: Ie60f817158c1b70d433f4ee2f4218f98f1982dbe
2016-04-26 16:42:28 +03:00

25 lines
786 B
Python

# -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import pbr.version
import pkg_resources
__version__ = pbr.version.VersionInfo(
'tuning_box').version_string()
def get_migrations_dir():
return pkg_resources.resource_filename('tuning_box', 'migrations')