def get_nim_project(window, view):
    """
    Given a window and view, return the Nim project associated with it.
    :type window: sublime.Window
    :type view: sublime.View
    :rtype: str
    """
    st_project = _get_project_file(window.id())
    result = view.file_name()

    if st_project is not None:
        with open(st_project) as project_file:
            data = json.loads(project_file.read())
            try:
                path = data['settings']['nim-project']

                # Get full path
                directory = os.path.dirname(st_project)
                path = path.replace('/', os.sep)
                result = os.path.join(directory, path)
            except __HOLE__:
                pass
    return result
dataset/ETHPy150Open Varriount/NimLime/nimlime_core/utils/project.py/get_nim_project