dom0: qvm-sync-appmenus: create appmenus dir if needed

This commit is contained in:
Marek Marczykowski 2011-06-11 22:55:53 +02:00
parent 454b678284
commit 5714410724

View File

@ -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: