def load_path(self, path):
        """
        Loads given path.

        :param path: Path to load.
        :type path: unicode
        :return: Method success.
        :rtype: bool
        """

        if not foundations.common.path_exists(path):
            return False

        if os.path.isfile(path):
            if path in self.list_files():
                self.set_current_editor(path)
            else:
                self.load_file(path)
        else:
            if not path in self.list_projects():
                self.add_project(path)
        return True
def load_path ( self , path ) : if not foundations . common . path_exists ( path ) : return False if os . path . isfile ( path ) : if path in self . list_files ( ) : self . set_current_editor ( path ) else : self . load_file ( path ) else : if not path in self . list_projects ( ) : self . add_project ( path ) return True
Loads given path.

        :param path: Path to load.
        :type path: unicode
        :return: Method success.
        :rtype: bool