def get_nim_project(window, view):
    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 IOError:
                pass
    return result
Given a window and view, return the Nim project associated with it.
dataset/ETHPy150Open Varriount/NimLime/nimlime_core/utils/project.py/get_nim_project