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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-15 13:34:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-15 13:34:57 +0400
commit5c4a7171fed4a323ebf9f00bcece99372bcc7187 (patch)
tree069daf54dad668ebde00a9c89a738bfdeb0daae2 /build_files/cmake/project_info.py
parent637387b8ac81d74167aeae0a47b9ac1264c2ea05 (diff)
qtcreator/netbeans generators: fix for error getting project info when svn isnt found (common on windows)
Diffstat (limited to 'build_files/cmake/project_info.py')
-rwxr-xr-xbuild_files/cmake/project_info.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/build_files/cmake/project_info.py b/build_files/cmake/project_info.py
index 77574f17e2e..3f64ac51a4d 100755
--- a/build_files/cmake/project_info.py
+++ b/build_files/cmake/project_info.py
@@ -231,8 +231,13 @@ def project_name_get(path, fallback="Blender", prefix="Blender_"):
return fallback
import subprocess
- info = subprocess.Popen(["svn", "info", path],
- stdout=subprocess.PIPE).communicate()[0]
+ try:
+ info = subprocess.Popen(["svn", "info", path],
+ stdout=subprocess.PIPE).communicate()[0]
+ except:
+ # possibly 'svn' isnt found/installed
+ return fallback
+
# string version, we only want the URL
info = info.decode(encoding="utf-8", errors="ignore")