From c2d3189667409561772e8c1e5615c5166cd8aa2c Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Fri, 25 Aug 2017 16:57:31 +0100 Subject: 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 Signed-off-by: Stefan Hajnoczi Acked-by: John Snow Acked-by: Fam Zheng Message-id: 20170825155732.15665-3-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/docker/docker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/docker/docker.py') 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 -- cgit v1.2.3-55-g7522