def dxProjectFolder(self): for window in sublime.windows(): folder = self.get_dx_folder_for_window(window) if folder != '': return folder return ''