diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-10 10:33:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-10 10:33:22 +0400 |
commit | 505eeb3b3104bd911683356026106f7a3b9b4958 (patch) | |
tree | 981fbf222ff719352bfb01796d6bac8f25d096d1 | |
parent | fbe3af24d43768785452f517c2878650a1d486ee (diff) |
fix [#27338] OBJ import fails with international characters in path
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
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 |