fix: Minor fixes

This commit is contained in:
cr0hn
2016-03-04 23:33:25 +01:00
parent c7134e109f
commit ddc6a3c34f
2 changed files with 15 additions and 5 deletions

View File

@@ -65,7 +65,10 @@ def action_proc_list_tasks(config):
# Save template
# --------------------------------------------------------------------------
# Build path in current dir
export_path = "%s.json" % os.path.abspath(config.template)
export_path = os.path.abspath(config.template)
if ".json" not in export_path:
export_path += ".json"
# dumps
json.dump(export_data, open(export_path, "w"))