[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-2.10 12/15] docker.py: Python 2.6 argparse compat
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL for-2.10 12/15] docker.py: Python 2.6 argparse compatibility |
Date: |
Thu, 31 Aug 2017 09:22:07 +0100 |
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>
Acked-by: John Snow <address@hidden>
Acked-by: Fam Zheng <address@hidden>
Message-id: 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
- [Qemu-devel] [PULL for-2.10 01/15] nvme: Fix get/set number of queues feature, again, (continued)
- [Qemu-devel] [PULL for-2.10 01/15] nvme: Fix get/set number of queues feature, again, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 02/15] throttle: Fix wrong variable name in the header documentation, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 03/15] throttle: Update the throttle_fix_bucket() documentation, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 04/15] throttle: Make throttle_is_valid() a bit less verbose, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 05/15] throttle: Remove throttle_fix_bucket() / throttle_unfix_bucket(), Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 06/15] throttle: Make LeakyBucket.avg and LeakyBucket.max integer types, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 07/15] throttle: Make burst_length 64bit and add range checks, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 08/15] throttle: Test the valid range of config values, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 09/15] oslib-posix: Print errors before aborting on qemu_alloc_stack(), Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 10/15] misc: Remove unused Error variables, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 12/15] docker.py: Python 2.6 argparse compatibility,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL for-2.10 13/15] tests: migration/guestperf Python 2.6 argparse compatibility, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 14/15] qemu-doc: Add UUID support in initiator name, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 11/15] scripts: add argparse module for Python 2.6 compatibility, Stefan Hajnoczi, 2017/08/31
- [Qemu-devel] [PULL for-2.10 15/15] qcow2: allocate cluster_cache/cluster_data on demand, Stefan Hajnoczi, 2017/08/31
- Re: [Qemu-devel] [PULL for-2.10 00/15] Block patches, no-reply, 2017/08/31
- Re: [Qemu-devel] [PULL for-2.10 00/15] Block patches, Eric Blake, 2017/08/31
- Re: [Qemu-devel] [PULL for-2.10 00/15] Block patches, Peter Maydell, 2017/08/31