[Piglit] [PATCH] piglit-run: Fix default search directory for piglit.conf
Tom Stellard
thomas.stellard at amd.com
Fri May 9 00:06:50 PDT 2014
We need to use os.getcwd() now that run.py is its own module.
---
framework/programs/run.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/framework/programs/run.py b/framework/programs/run.py
index 9c5b033..71865e7 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -112,8 +112,7 @@ def run(input_):
core.PIGLIT_CONFIG.readfp(args.config_file)
args.config_file.close()
else:
- core.PIGLIT_CONFIG.read(os.path.join(os.path.dirname(__file__),
- 'piglit.conf'))
+ core.PIGLIT_CONFIG.read(os.path.join(os.getcwd(), 'piglit.conf'))
# Pass arguments into Environment
env = core.Environment(concurrent=args.concurrency,
--
1.8.1.5
More information about the Piglit
mailing list