diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-07-19 22:51:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-07-19 22:51:25 +0400 |
commit | 62ffb81316bbae1c1bf286d72e729f623004a0b8 (patch) | |
tree | be54b9408df57f3b6c4e7680614eab1849b6abd8 | |
parent | 979bec79c373b5bfae0bfe6e74e6e92bf3214ff2 (diff) |
d_type isnt a member of dirent on win32.
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 6 |
1 files changed, 5 insertions, 1 deletions
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)) { |