diff options
author | Stefan Hajnoczi | 2017-08-25 17:57:31 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2017-08-30 13:02:11 +0200 |
commit | c2d3189667409561772e8c1e5615c5166cd8aa2c (patch) | |
tree | d0635e124b39da38cf629bb8ca0d6c96921c82b3 /tests | |
parent | scripts: add argparse module for Python 2.6 compatibility (diff) | |
download | qemu-c2d3189667409561772e8c1e5615c5166cd8aa2c.tar.gz qemu-c2d3189667409561772e8c1e5615c5166cd8aa2c.tar.xz qemu-c2d3189667409561772e8c1e5615c5166cd8aa2c.zip |
docker.py: Python 2.6 argparse compatibility
Add the scripts/ directory to sys.path so Python 2.6 will be able to
import argparse.
Cc: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Message-id: 20170825155732.15665-3-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/docker/docker.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/docker/docker.py b/tests/docker/docker.py index ee40ca04d9..81c87ee329 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -13,12 +13,14 @@ import os import sys +sys.path.append(os.path.join(os.path.dirname(__file__), + '..', '..', 'scripts')) +import argparse import subprocess import json import hashlib import atexit import uuid -import argparse import tempfile import re import signal |