On 03/21/2012 08:46 PM, Peter Krempa wrote:
This patch enables the util scripts to be found in correct path when
using a not-so-standard checkout path. (.../libvirt-test-API.git/...).
---
utils/Python/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utils/Python/utils.py b/utils/Python/utils.py
index 6e23138..e0e2dba 100644
--- a/utils/Python/utils.py
+++ b/utils/Python/utils.py
@@ -317,7 +317,7 @@ class Utils(object):
def locate_utils(self):
"""Get the directory path of 'utils'"""
pwd = os.getcwd()
- result = re.search('(.*)libvirt-test-API', pwd)
+ result = re.search('(.*)libvirt-test-API(.*)', pwd)
return result.group(0) + "/utils"
def mac_to_ip(self, mac, timeout):
ACK, thanks
Guannan Ren