Exemple #1
0
 def loadProjects(self):
     for path in self.knownProjects[:]:
         try:
             ProjectTreeNode.loadProject(path, self)
         except exceptions.FileNotExistsException as e:
             print e
             self.knownProjects.remove(path)
             self.settings.setValue('knownProjects', self.knownProjects)
Exemple #2
0
 def loadProjects(self):
     for path in self.knownProjects[:]:
         try:
             ProjectTreeNode.loadProject(path, self)
         except exceptions.FileNotExistsException as e:
             print e
             self.knownProjects.remove(path)
             self.settings.setValue('knownProjects', self.knownProjects)
Exemple #3
0
 def loadProjects(self, messageHandler = None):
     self.messageHandler = messageHandler
     for path in self.knownProjects[:]:
         try:
             ProjectTreeNode.loadProject(path, self)
         except exceptions.FileNotExistsException as e:
             print(e)
             self.knownProjects.remove(path)
             self._settings.setValue('knownProjects', self.knownProjects)
     self.messageHandler = None
Exemple #4
0
 def importProject(self, directory):
     try:
         project = ProjectTreeNode.loadProject(directory, self)
     except exceptions.FileNotExistsException:
         raise exceptions.LocationIsNotProject()
     self.appendToKnowProjects(project)
Exemple #5
0
 def openProject(self, file_path):
     try:
         project = ProjectTreeNode.loadProject(file_path, self)
     except exceptions.FileNotExistsException:
         raise exceptions.FileIsNotProject()
Exemple #6
0
 def importProject(self, directory):
     try:
         project = ProjectTreeNode.loadProject(directory, self)
     except exceptions.FileNotExistsException:
         raise exceptions.LocationIsNotProject()
     self.appendToKnowProjects(project)