summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-03-30 11:18:32 -0700
committerDylan Baker <dylan@pnwbakers.com>2016-05-02 17:53:45 -0700
commit5b6f435b8f47aaa61bf2ec3810152dedb9bc94a9 (patch)
tree4567ccf451e905613ea1a6ad816732e46cf9eb98
parent082818df4822b3f64b597e19026659775d097d68 (diff)
framework: remove os.path as path import from piglit-print-commands.
This file had a mixture of path.* and os.path.*, just use one of them. Reviewed-by: Vinson Lee <vlee@freedesktop.org>
-rwxr-xr-xpiglit-print-commands.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/piglit-print-commands.py b/piglit-print-commands.py
index 793ffaef6..79bc7f5c4 100755
--- a/piglit-print-commands.py
+++ b/piglit-print-commands.py
@@ -28,9 +28,8 @@ from __future__ import (
import argparse
import sys
import os
-import os.path as path
-sys.path.append(path.dirname(path.realpath(sys.argv[0])))
+sys.path.append(os.path.dirname(os.path.realpath(sys.argv[0])))
from framework import options
from framework.programs import parsers
import framework.profile
@@ -61,7 +60,7 @@ def main():
options.OPTIONS.include_filter = args.include_tests
# Change to the piglit's path
- piglit_dir = path.dirname(path.realpath(sys.argv[0]))
+ piglit_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
os.chdir(piglit_dir)
profile = framework.profile.load_test_profile(args.testProfile)