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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-10 10:33:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-10 10:33:22 +0400
commit505eeb3b3104bd911683356026106f7a3b9b4958 (patch)
tree981fbf222ff719352bfb01796d6bac8f25d096d1 /io_scene_obj
parentfbe3af24d43768785452f517c2878650a1d486ee (diff)
fix [#27338] OBJ import fails with international characters in path
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 4593fc2f..462627bc 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -990,7 +990,7 @@ def load(operator, context, filepath,
'''
print('\nimporting obj %r' % filepath)
- filepath = filepath.encode()
+ filepath = os.fsencode(filepath)
if use_split_objects or use_split_groups:
use_groups_as_vgroups = False