From 62ffb81316bbae1c1bf286d72e729f623004a0b8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Jul 2009 18:51:25 +0000 Subject: d_type isnt a member of dirent on win32. --- source/blender/python/intern/bpy_interface.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy_interface.c') diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 520856a8d0b..6a5d01d9466 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -511,9 +511,13 @@ void BPY_run_ui_scripts(bContext *C, int reload) if (de->d_name[0] == '.') { /* do nothing, probably .svn */ } +#ifndef __linux__ + else if( BLI_join_dirfile(path, dirname, de->d_name), S_ISDIR(BLI_exists(path))) { +#else else if(de->d_type==DT_DIR) { - /* support packages */ BLI_join_dirfile(path, dirname, de->d_name); +#endif + /* support packages */ BLI_join_dirfile(path, path, "__init__.py"); if(BLI_exists(path)) { -- cgit v1.2.3