[kupfer] Understand relative paths in VirtualBox OSE configuration
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] Understand relative paths in VirtualBox OSE configuration
- Date: Sat, 13 Feb 2010 03:53:53 +0000 (UTC)
commit 9cfeac1abc6ef68970f21a7d77354f0f12e4b63b
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sat Feb 13 04:37:14 2010 +0100
Understand relative paths in VirtualBox OSE configuration
Patch by Alexey Porotnikov
Fixes bug: https://bugs.launchpad.net/kupfer/+bug/520987
kupfer/plugin/virtualbox/ose_support.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/virtualbox/ose_support.py b/kupfer/plugin/virtualbox/ose_support.py
index ac45c5a..2c74658 100644
--- a/kupfer/plugin/virtualbox/ose_support.py
+++ b/kupfer/plugin/virtualbox/ose_support.py
@@ -126,6 +126,8 @@ def _get_machine_info(vm_uuid, config_file):
def get_machines():
if os.path.isfile(_VBOX_CONFIG_FILE):
for vm_uuid, config in _get_virtual_machines(_VBOX_CONFIG_FILE):
+ if not os.path.isabs(config):
+ config = os.path.join(os.path.dirname(_VBOX_CONFIG_FILE), config)
name, description = _get_machine_info(vm_uuid, config)
if name:
yield (vm_uuid, name, description)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]