def run(self):
		data = self.window.project_data()
		self.folders = []
		for folder in data["folders"]:
			self.folders.append(os.path.expanduser(folder["path"]))

		if "code_search" in data:
			if "csearchindex" in data["code_search"]:
				self.csearchindex = os.path.expanduser(data["code_search"]["csearchindex"])
				settings = sublime.load_settings('CodeSearch.sublime-settings')
				self.path_cindex = settings.get("path_cindex")
				indexThread = threading.Thread(target=self.runIndexing)
				indexThread.start()
				return

		sublime.error_message("Please add 'code_search':{ 'csearchindex': '<path-to-the-index-file>'} to your project!")
dataset/ETHPy150Open whoenig/SublimeCodeSearch/Index.py/CodeSearchIndexCommand.run/original