diff --git a/kadmos/vistoms/vistoms.py b/kadmos/vistoms/vistoms.py index 8a4ac84a78a17f99f51c913afc1d6681b87772b4..dda87a0047d5fc5227b06e5423cf9b3caded8cb4 100644 --- a/kadmos/vistoms/vistoms.py +++ b/kadmos/vistoms/vistoms.py @@ -1159,7 +1159,7 @@ def interface(debug=True, tempdir=None): # Here the dc cmdows file is loaded # Save the template cmdows file in the tmp folder - cmdows_template = os.path.join('templates', 'cmdows_template.xml') + cmdows_template = os.path.join(os.path.split(__file__)[0], 'templates', 'cmdows_template.xml') cmdows_file = os.path.join(session_folder, 'cmdows_template.xml') # Write the new competence to the CMDOWS template xml file tree = ET.parse(cmdows_template) @@ -1206,7 +1206,7 @@ def interface(debug=True, tempdir=None): return newVistomsData except Exception as e: - return "ERROR: " + e.message + return "ERROR: {}".format(e) # Logs the error appropriately. @app.route('/kadmos_edit_contact_infos', methods=['POST'])