Revision: 26493
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26493
Author: theeth
Date: 2010-02-01 02:33:40 +0100 (Mon, 01 Feb 2010)
Log Message:
-----------
Fix loading python modules (like netrender)
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bpy/utils.py
Modified: trunk/blender/release/scripts/modules/bpy/utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/utils.py 2010-02-01 01:08:45 UTC
(rev 26492)
+++ trunk/blender/release/scripts/modules/bpy/utils.py 2010-02-01 01:33:40 UTC
(rev 26493)
@@ -88,7 +88,7 @@
if f.endswith(".py"):
# python module
mod = test_import(f[0:-3])
- elif ("." not in f) and
(_os.path.isdir(_os.path.join(path, f, "__init__.py"))):
+ elif ("." not in f) and
(_os.path.isfile(_os.path.join(path, f, "__init__.py"))):
# python package
mod = test_import(f)
else:
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs