Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1
openstack-keystone-doc
0001-Make-ROOTDIR-determination-more-robust.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Make-ROOTDIR-determination-more-robust.patch of Package openstack-keystone-doc
From e9aef4e9b9db6901c48b4a6761aaacbac9cc0efb Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dirk@dmllr.de> Date: Wed, 18 Sep 2013 12:13:57 +0200 Subject: [PATCH] Make ROOTDIR determination more robust This change is needed when keystone/ is a symlink and etc is in a different directory hierarchy. Change-Id: I649da899c1425ffe933f2bb0faa53bfb0d999f3d --- keystone/tests/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystone/tests/core.py b/keystone/tests/core.py index 5c051a4..b7f2cfb 100644 --- a/keystone/tests/core.py +++ b/keystone/tests/core.py @@ -69,7 +69,8 @@ from keystone import trust LOG = logging.getLogger(__name__) -ROOTDIR = os.path.dirname(os.path.abspath('..')) +ROOTDIR = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), + "../..")) VENDOR = os.path.join(ROOTDIR, 'vendor') TESTSDIR = os.path.join(ROOTDIR, 'keystone', 'tests') ETCDIR = os.path.join(ROOTDIR, 'etc') -- 1.8.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor