[Kimchi-devel] [PATCH] [Kimchi] Github #986: create '/data/virtviewerfiles' dir automatically

dhbarboza82 at gmail.com dhbarboza82 at gmail.com
Thu Aug 25 17:01:48 UTC 2016


From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>

This patch makes the '/data/virtviewerfiles' dir behave the
same as '/data/screenshots', being created automatically at
Kimchi startup if it doesn't exists.

Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
---
 root.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/root.py b/root.py
index a88f97d..90680b4 100644
--- a/root.py
+++ b/root.py
@@ -37,7 +37,8 @@ class Kimchi(WokRoot):
         make_dirs = [
             os.path.dirname(os.path.abspath(config.get_object_store())),
             os.path.abspath(config.get_distros_store()),
-            os.path.abspath(config.get_screenshot_path())
+            os.path.abspath(config.get_screenshot_path()),
+            os.path.abspath(config.get_virtviewerfiles_path())
         ]
         for directory in make_dirs:
             if not os.path.isdir(directory):
-- 
2.5.5




More information about the Kimchi-devel mailing list