Ejemplo n.º 1
0
 def _promptForMissingArguments(self, error=None):
     if (self._config['noGui']):
         print getMessage("en", "missing-arguments-error")
         sys.exit()
     elif (GuiConfiguration):
         gc = GuiConfiguration(self._config, error=error)
         gc.setAvailablePaths(self._playerFactory.getAvailablePlayerPaths())
         gc.run()
         return gc.getProcessedConfiguration()
Ejemplo n.º 2
0
 def _promptForMissingArguments(self, error=None):
     if self._config['noGui'] or not GuiConfiguration:
         if error:
             print "{}!".format(error)
         print getMessage("missing-arguments-error")
         sys.exit()
     elif GuiConfiguration:
         gc = GuiConfiguration(self._config, error=error)
         gc.setAvailablePaths(self._playerFactory.getAvailablePlayerPaths())
         gc.run()
         return gc.getProcessedConfiguration()
Ejemplo n.º 3
0
 def _promptForMissingArguments(self, error=None):
     if self._config['noGui']:
         if error:
             print("{}!".format(error))
         print(getMessage("missing-arguments-error"))
         sys.exit()
     else:
         from syncplay.ui.GuiConfiguration import GuiConfiguration
         gc = GuiConfiguration(self._config, error=error)
         gc.setAvailablePaths(self._playerFactory.getAvailablePlayerPaths())
         gc.run()
         return gc.getProcessedConfiguration()
Ejemplo n.º 4
0
 def _promptForMissingArguments(self):
     if(self._config['noGui']):
         print getMessage("en", "missing-arguments-error")
         sys.exit()
     elif(GuiConfiguration):
         gc = GuiConfiguration(self._config)
         gc.setAvailablePaths(self._playerFactory.getAvailablePlayerPaths())
         gc.run()
         return gc.getProcessedConfiguration()
Ejemplo n.º 5
0
 def _promptForMissingArguments(self, error=None):
     if self._config['noGui'] or not GuiConfiguration:
         if error:
             print "{}!".format(error)
         print getMessage("missing-arguments-error")
         sys.exit()
     elif GuiConfiguration:
         gc = GuiConfiguration(self._config, error=error)
         gc.setAvailablePaths(self._playerFactory.getAvailablePlayerPaths())
         gc.run()
         return gc.getProcessedConfiguration()
Ejemplo n.º 6
0
 def _promptForMissingArguments(self, error=None):
     if self._config['noGui']:
         if error:
             print("{}!".format(error))
         print(getMessage("missing-arguments-error"))
         sys.exit()
     else:
         from syncplay.ui.GuiConfiguration import GuiConfiguration
         gc = GuiConfiguration(self._config, error=error)
         gc.setAvailablePaths(self._playerFactory.getAvailablePlayerPaths())
         gc.run()
         return gc.getProcessedConfiguration()