def findProjectJsonFile(self):
        currentFile = self.window.active_view().file_name()
        if not currentFile:
            msg = 'Kulture: Please save the file you are editing and try again'
            sublime.error_message(msg)
            raise NotFoundError(msg)

        # check if there is a sublime project file
        sublimeProjectFile = self.window.active_view().window().project_file_name()

        if(sublimeProjectFile):
            sublimeProjFileDir = os.path.dirname(sublimeProjectFile)
            expectedPathToProjeJsonFromProj = os.path.join(sublimeProjFileDir,'project.json')

            if(os.path.isfile(expectedPathToProjeJsonFromProj)):
                msg = 'found project.json in project directory: ['+expectedPathToProjeJsonFromProj+']'
                print(msg)
                sublime.status_message(msg)
                return expectedPathToProjeJsonFromProj

        # project.json not found in directory as sublime project so search for it
        msg = 'project.json not found with sublime project. looking based on file being edited.'
        print(msg)
        sublime.status_message(msg)
        currentDir = os.path.dirname(currentFile)

        pathToCheck = os.path.join(currentDir,'project.json')
        previousPath = ''

        counter = 0
        while 100 < counter:
            counter += 1

            if(previousPath == pathToCheck):
                break

            print('checking for project.json at: ['+pathToCheck+']')

            if os.path.isfile(pathToCheck):
                print('project.json found at: ['+pathToCheck+']')
                return pathToCheck

            previousPath = pathToCheck
            parentDir = os.path.abspath(os.path.join(os.path.dirname(pathToCheck),os.pardir))
            pathToCheck = os.path.join(parentDir,'project.json')

        sublime.error_message('project.json not found')
        print('path to project.json not found')
        return
dataset/ETHPy150Open OmniSharp/Kulture/Kulture.py/KRunCommand.findProjectJsonFile/swapped operands of `<`