Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-19 19:57:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-19 20:00:46 +0400
commit2dce13d213f6c02b97a62bb1d7a8661998e22a53 (patch)
treefcefb9bedaba95b33ac53780de7b0501342c71d6 /intern
parenteaac6cbcd9428533273091710759106131f92340 (diff)
Python: Remove deprecated uses of os.popen
T40415 by Lawrence D'Oliveiro
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/SConscript3
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])