[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibilit
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility |
Date: |
Sat, 26 Aug 2017 08:29:34 +0800 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
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 <address@hidden>
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
> 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 <address@hidden>
- [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, Stefan Hajnoczi, 2017/08/25
- [Qemu-devel] [PATCH 3/3] tests: migration/guestperf Python 2.6 argparse compatibility, Stefan Hajnoczi, 2017/08/25
- [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility, Stefan Hajnoczi, 2017/08/25
- Re: [Qemu-devel] [PATCH 2/3] docker.py: Python 2.6 argparse compatibility,
Fam Zheng <=
- [Qemu-devel] [PATCH 1/3] scripts: add argparse module for Python 2.6 compatibility, Stefan Hajnoczi, 2017/08/25
- Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, no-reply, 2017/08/25
- Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, Philippe Mathieu-Daudé, 2017/08/25
Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, John Snow, 2017/08/28
Re: [Qemu-devel] [PATCH 0/3] scripts: add argparse module for Python 2.6 compatibility, Stefan Hajnoczi, 2017/08/30