def getTemplateMenuPath(file_name, user_path=False):
    if(not user_path):
        preset_path = getPresetPath()
    else:
        preset_path = getDeviotUserPath()
        preset_path = os.path.join(preset_path, 'Preset')

        try:
            os.makedirs(preset_path)
        except __HOLE__ as exc:
            if exc.errno != errno.EEXIST:
                raise exc
            pass

    menu_path = os.path.join(preset_path, file_name)

    return menu_path
dataset/ETHPy150Open gepd/Deviot/libs/Paths.py/getTemplateMenuPath