Fix loading python modules (like netrender)
authorMartin Poirier <theeth@yahoo.com>
Mon, 1 Feb 2010 01:33:40 +0000 (01:33 +0000)
committerMartin Poirier <theeth@yahoo.com>
Mon, 1 Feb 2010 01:33:40 +0000 (01:33 +0000)
release/scripts/modules/bpy/utils.py

index a719e74b19fcc786101925109a42799594c8adb7..7f10be362dfcfacd029ed63b7bcfbaaf402b277c 100644 (file)
@@ -88,7 +88,7 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
                     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: