diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-19 19:57:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-19 20:00:46 +0400 |
commit | 2dce13d213f6c02b97a62bb1d7a8661998e22a53 (patch) | |
tree | fcefb9bedaba95b33ac53780de7b0501342c71d6 /intern | |
parent | eaac6cbcd9428533273091710759106131f92340 (diff) |
Python: Remove deprecated uses of os.popen
T40415 by Lawrence D'Oliveiro
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/SConscript | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/kernel/SConscript b/intern/cycles/kernel/SConscript index ef28f7b6d91..bceab7e2b0f 100644 --- a/intern/cycles/kernel/SConscript +++ b/intern/cycles/kernel/SConscript @@ -64,8 +64,7 @@ if env['WITH_BF_CYCLES_CUDA_BINARIES']: closure_dir = os.path.join(source_dir, "../closure") # get CUDA version - nvcc_pipe = subprocess.Popen([nvcc, "--version"],stdout=subprocess.PIPE,stderr=subprocess.PIPE) - output, erroroutput = nvcc_pipe.communicate() + output = subprocess.check_output([nvcc, "--version"]) cuda_major_minor = re.findall(r'release (\d+).(\d+)', output)[0] cuda_version = int(cuda_major_minor[0])*10 + int(cuda_major_minor[1]) |