parameters: (self, file_name, load_workspaces=True)
return_statement: return workspace_success
docstring: Will load the project in the given file_name
          :param file_name: String or string castable object; the file_name of the project
          :param load_workspaces: Bool; True if you want ProjectLoader to handle loading workspaces else False.
          :return: Bool; True if all workspace loaded successfully, False if not loaded successfully.
docstring_summary: Will load the project in the given file_name
          :param file_name: String or string castable object; the file_name of the project
          :param load_workspaces: Bool; True if you want ProjectLoader to handle loading workspaces else False.
          :return: Bool; True if all workspace loaded successfully, False if not loaded successfully.
docstring_tokens: Will load the project in the given file_name : param file_name : String or string castable object ; the file_name of the project : param load_workspaces : Bool ; True if you want ProjectLoader to handle loading workspaces else False . : return : Bool ; True if all workspace loaded successfully False if not loaded successfully .
function: def load_project(self, file_name, load_workspaces=True):
          """
          Will load the project in the given file_name
          :param file_name: String or string castable object; the file_name of the project
          :param load_workspaces: Bool; True if you want ProjectLoader to handle loading workspaces else False.
          :return: Bool; True if all workspace loaded successfully, False if not loaded successfully.
          """
          # It can be expected that if at this point it is NoneType that it's an error
          if file_name is None:
              return
  
          # Read project
          self.project_reader.read_project(file_name)
  
          directory = os.path.dirname(file_name)
          # Load in the workspaces
          if load_workspaces:
              self.workspace_loader.load_workspaces(directory=directory,
                                                    workspaces_to_load=self.project_reader.workspace_names)
  
          workspace_success = _confirm_all_workspaces_loaded(workspaces_to_confirm=self.project_reader.workspace_names)
  
          if workspace_success:
              # Load plots
              if self.project_reader.plot_list is not None:
                  self.plot_loader.load_plots(self.project_reader.plot_list)
  
              # Load interfaces
              if self.project_reader.interface_list is not None:
                  QAppThreadCall(self.load_interfaces)(directory)
  
          return workspace_success
function_tokens: def load_project ( self , file_name , load_workspaces = True ) : # It can be expected that if at this point it is NoneType that it's an error if file_name is None : return # Read project self . project_reader . read_project ( file_name ) directory = os . path . dirname ( file_name ) # Load in the workspaces if load_workspaces : self . workspace_loader . load_workspaces ( directory = directory , workspaces_to_load = self . project_reader . workspace_names ) workspace_success = _confirm_all_workspaces_loaded ( workspaces_to_confirm = self . project_reader . workspace_names ) if workspace_success : # Load plots if self . project_reader . plot_list is not None : self . plot_loader . load_plots ( self . project_reader . plot_list ) # Load interfaces if self . project_reader . interface_list is not None : QAppThreadCall ( self . load_interfaces ) ( directory ) return workspace_success