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 <[email protected]>
Signed-off-by: Fabian Deutsch <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: hadong <[email protected]>
_______________________________________________
node-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-patches

Reply via email to