support for creating project files in utf8 paths (was defaulting to ascii and throwing errors)
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user