Ejemplo n.º 1
0
    def checkRequirements(self):
        if which(self.conf['binary']) == None:
            self.active=False
            print("Module warning (%s): Cannot find '%s' executable." % (self.getName(), self.conf['binary']))
            print("    Please install krita package.")
            return False
        if which(self.conf['convert_binary']) == None:
            self.active=False
            print("Module warning (%s): Cannot find '%s' executable!" % (self.getName(), self.conf['convert_binary']))
            print("    Please install ImageMagick package.")
            return False
        self.active=True

        commandline = [self.conf['binary'], "--help"]
        out = subprocess.Popen(commandline, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        rc = None
        while rc is None:
            line = out.stdout.readline()
            line = line.decode(sys.stdout.encoding)
            if not line:
                break
            # print(line)
            sys.stdout.flush()

            if line.find("--export-sequence") != -1:
                self.canRenderAnimation = True

            rc = out.poll()
        out.communicate()

        return True
Ejemplo n.º 2
0
 def checkRequirements(self):
     if which(self.conf['binary']) == None:
         self.active=False
         print("Module warning (%s): Cannot find '%s' executable." % (self.getName(), self.conf['binary']))
         print("    Please install flac package.")
         return False
     if which(self.conf['sox_binary']) == None:
         self.active=False
         print("Module warning (%s): Cannot find '%s' executable!" % (self.getName(), self.conf['sox_binary']))
         print("    Please install sox package.")
         return False
     self.active=True
     return True
Ejemplo n.º 3
0
 def checkRequirements(self):
     if which(self.conf['binary']) == None:
         self.active=False
         print("Module warning (%s): Cannot find '%s' executable!" % (self.getName(), self.conf['binary']))
         print("    Please install vorbis-tools package.")
         return False
     if which(self.conf['sox_binary']) == None:
         self.active=False
         print("Module warning (%s): Cannot find '%s' executable!" % (self.getName(), self.conf['sox_binary']))
         print("    Please install sox package.")
         return False
     self.active=True
     return True
Ejemplo n.º 4
0
 def checkRequirements(self):
     if which(self.conf['binary']) == None:
         self.active = False
         print("Module warning (%s): Cannot find '%s' executable." %
               (self.getName(), self.conf['binary']))
         print("    Please install krita package.")
         return False
     if which(self.conf['convert_binary']) == None:
         self.active = False
         print("Module warning (%s): Cannot find '%s' executable!" %
               (self.getName(), self.conf['convert_binary']))
         print("    Please install ImageMagick package.")
         return False
     self.active = True
     return True
Ejemplo n.º 5
0
 def checkRequirements(self):
     for key in ["binary", "sox_binary"]:
         if which(self.conf[key]) == None:
             self.active = False
             print "Module warning (%s): Cannot find '%s' executable." % (self.getName(), self.conf[key])
             print "    Please install flac package."
             return False
     self.active = True
     return True
Ejemplo n.º 6
0
 def checkRequirements(self):
     if self.conf['binary']:
         binary_path = which(self.conf['binary'])
         if binary_path == None:
             self.active=False
             print("Module warning (%s): Cannot find '%s' executable." % (self.getName(), self.conf["binary"]))
             print("    Please install %s package." % (self.getName()))
         else:
             # Workaround because some applications (gimp) cannot be executed via symlink
             self.conf['binary'] = binary_path
             self.active=True
     else:
         self.active=False
     return self.active
Ejemplo n.º 7
0
 def checkRequirements(self):
     if self.conf['binary']:
         binary_path = which(self.conf['binary'])
         if binary_path == None:
             self.active = False
             print("Module warning (%s): Cannot find '%s' executable." %
                   (self.getName(), self.conf["binary"]))
             print("    Please install %s package." % (self.getName()))
         else:
             # Workaround because some applications (gimp) cannot be executed via symlink
             self.conf['binary'] = binary_path
             self.active = True
     else:
         self.active = False
     return self.active