[node-patches] Change in ovirt-node[node-3.0]: Add new python_lib path into sys.path before reload install ...

fabiand at fedoraproject.org fabiand at fedoraproject.org
Wed Feb 19 14:15:44 UTC 2014


Hello hadong,

I'd like you to do a code review.  Please visit

    http://gerrit.ovirt.org/24769

to review the following change.

Change subject: Add new python_lib path into sys.path before reload install module
......................................................................

Add new python_lib path into sys.path before reload install module

Change-Id: I66ec03ef530c9b95eae968b7d6d93adceab404f4
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1052875
Signed-off-by: hadong <hadong at redhat.com>
Signed-off-by: Fabian Deutsch <fabiand at redhat.com>
---
M scripts/ovirt-node-upgrade.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/69/24769/1

diff --git a/scripts/ovirt-node-upgrade.py b/scripts/ovirt-node-upgrade.py
index 16a6533..ad46709 100755
--- a/scripts/ovirt-node-upgrade.py
+++ b/scripts/ovirt-node-upgrade.py
@@ -219,6 +219,7 @@
         if not self._python_lib:
             raise RuntimeError("Unable to determine python path")
         self._python_lib = self._python_lib[0]
+        sys.path.append(self._python_lib + "/site-packages/")
         self._tmp_python_path = "%s/site-packages/ovirtnode" \
             % self._python_lib
         shutil.copytree(self._tmp_python_path, self._ovirtnode_dir)


-- 
To view, visit http://gerrit.ovirt.org/24769
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I66ec03ef530c9b95eae968b7d6d93adceab404f4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list