~osomon/phatch/extract-all-metadata

« back to all changes in this revision

Viewing changes to phatch/actions/blender.py

  • Committer: spe.stani.be at gmail
  • Date: 2010-03-21 15:20:18 UTC
  • mto: (1887.1.6 windows)
  • mto: This revision was merged to the branch mainline in revision 1892.
  • Revision ID: spe.stani.be@gmail.com-20100321152018-5b2okrvh9t4eogco
refactoring system.call and making all test filenames unicode

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
        global imtools
332
332
        from lib import imtools
333
333
        self.find_exe('blender')
334
 
        out, err = system.shell((self.exe['blender'], '-v'))
335
 
        if not RE_BLENDER_VERSION.search(out):
 
334
        stdout, stderr, err = system.call_out_err((self.exe['blender'], '-v'))
 
335
        if err or not RE_BLENDER_VERSION.search(stdout):
336
336
            raise Exception(
337
337
                _('Sorry, you have the wrong version of Blender installed.') +
338
338
                ' ' + _('Blender %s is required.') % BLENDER_VERSIONS)