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>2011-11-16 07:44:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-16 07:44:08 +0400
commit9d31c99c26956ecedf0bdcf9e02ce412d313257b (patch)
tree5b1527e60779e65cd0e17e0c92acb93c84a923bd /build_files/cmake/cmake_qtcreator_project.py
parent683e6faf81d763b75dee3237a03ecda0705a18ba (diff)
support for creating project files in utf8 paths (was defaulting to ascii and throwing errors)
Diffstat (limited to 'build_files/cmake/cmake_qtcreator_project.py')
-rwxr-xr-xbuild_files/cmake/cmake_qtcreator_project.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/build_files/cmake/cmake_qtcreator_project.py b/build_files/cmake/cmake_qtcreator_project.py
index a89bcd01523..07ffa659437 100755
--- a/build_files/cmake/cmake_qtcreator_project.py
+++ b/build_files/cmake/cmake_qtcreator_project.py
@@ -89,7 +89,7 @@ def create_qtc_project_main():
f = open(os.path.join(PROJECT_DIR, "%s.files" % FILE_NAME), 'w')
f.write("\n".join(files_rel))
- f = open(os.path.join(PROJECT_DIR, "%s.includes" % FILE_NAME), 'w')
+ f = open(os.path.join(PROJECT_DIR, "%s.includes" % FILE_NAME), 'w', encoding='utf-8')
f.write("\n".join(sorted(includes)))
qtc_prj = os.path.join(PROJECT_DIR, "%s.creator" % FILE_NAME)
@@ -104,7 +104,7 @@ def create_qtc_project_main():
defines_final += cmake_compiler_defines()
f.write("\n".join(defines_final))
- print("Blender project file written to: %s" % qtc_prj)
+ print("Blender project file written to: %r" % qtc_prj)
# --- end
@@ -133,7 +133,7 @@ def create_qtc_project_python():
f = open(qtc_cfg, 'w')
f.write("// ADD PREDEFINED MACROS HERE!\n")
- print("Python project file written to: %s" % qtc_prj)
+ print("Python project file written to: %r" % qtc_prj)
def main():