Changeset 1143 in main


Ignore:
Timestamp:
05/30/12 15:46:45 (7 years ago)
Author:
pcosquer
Message:

document3D: pov: failed silently if povray is not installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/document3D/pov.py

    r1142 r1143  
    108108                "-H400", "-W400", 
    109109                "+A", "+AM2", "+Q9", "-d", "+WL0"] 
    110         ret = subprocess.call(args, cwd=pov_dir, stdout=null, stderr=null) 
     110        try: 
     111            ret = subprocess.call(args, cwd=pov_dir, stdout=null, stderr=null) 
     112        except OSError: 
     113            # could not call povray 
     114            ret = 1 
    111115    if ret == 0 and os.path.exists(thumb): 
    112116        shutil.copy2(thumb, thumb_path) 
Note: See TracChangeset for help on using the changeset viewer.