tests: migration/guestperf Python 2.6 argparse compatibility

Add the scripts/ directory to sys.path so Python 2.6 will be able to
import argparse.

Cc: Daniel P. Berrange <berrange@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-4-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Stefan Hajnoczi 2017-08-25 16:57:32 +01:00
parent c2d3189667
commit 0ea47d0f36
1 changed files with 5 additions and 3 deletions

View File

@ -18,12 +18,14 @@
#
import argparse
import fnmatch
import os
import os.path
import platform
import sys
sys.path.append(os.path.join(os.path.dirname(__file__),
'..', '..', '..', 'scripts'))
import argparse
import fnmatch
import platform
from guestperf.hardware import Hardware
from guestperf.engine import Engine