From 505eeb3b3104bd911683356026106f7a3b9b4958 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 10 May 2011 06:33:22 +0000 Subject: fix [#27338] OBJ import fails with international characters in path --- io_scene_obj/import_obj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_scene_obj') 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 -- cgit v1.2.3