From: Fam Zheng <famz@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-devel@nongnu.org, chugh.ishani@research.iiit.ac.in,
Daniel Berrange <berrange@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility
Date: Sat, 26 Aug 2017 08:29:34 +0800 [thread overview]
Message-ID: <20170826002934.GA2018@lemon.lan> (raw)
In-Reply-To: <20170825155732.15665-3-stefanha@redhat.com>
On Fri, 08/25 16:57, Stefan Hajnoczi wrote:
> 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>
> ---
> tests/docker/docker.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> 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
> --
> 2.13.5
>
Acked-by: Fam Zheng <famz@redhat.com>
next prev parent reply other threads:[~2017-08-26 0:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-25 15:57 [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility Stefan Hajnoczi
2017-08-25 15:57 ` [Qemu-devel] [PATCH 1/3] " Stefan Hajnoczi
2017-08-25 15:57 ` [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility Stefan Hajnoczi
2017-08-26 0:29 ` Fam Zheng [this message]
2017-08-25 15:57 ` [Qemu-devel] [PATCH 3/3] tests: migration/guestperf " Stefan Hajnoczi
2017-08-25 16:24 ` [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility no-reply
2017-08-29 9:59 ` Stefan Hajnoczi
2017-08-25 16:35 ` Philippe Mathieu-Daudé
2017-08-25 16:40 ` Peter Maydell
2017-08-25 17:42 ` Eric Blake
2017-08-29 10:01 ` Stefan Hajnoczi
2017-08-29 18:02 ` Philippe Mathieu-Daudé
2017-08-28 21:47 ` John Snow
2017-08-30 11:02 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170826002934.GA2018@lemon.lan \
--to=famz@redhat.com \
--cc=berrange@redhat.com \
--cc=chugh.ishani@research.iiit.ac.in \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).