From 57144107243030a79f9c1c6b16663ffba4f494c1 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 11 Jun 2011 22:55:53 +0200 Subject: [PATCH] dom0: qvm-sync-appmenus: create appmenus dir if needed --- dom0/qvm-tools/qvm-sync-appmenus | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-sync-appmenus b/dom0/qvm-tools/qvm-sync-appmenus index 58e3af7a..5e2a2946 100755 --- a/dom0/qvm-tools/qvm-sync-appmenus +++ b/dom0/qvm-tools/qvm-sync-appmenus @@ -154,7 +154,8 @@ def main(): print "ERROR: No appmenus received, terminating" exit(1) - assert os.path.exists(vm.appmenus_templates_dir) + if not os.path.exists(vm.appmenus_templates_dir): + os.mkdir(vm.appmenus_templates_dir) # Create new/update existing templates if options.verbose: