Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2010-02-01 04:33:40 +0300
committerMartin Poirier <theeth@yahoo.com>2010-02-01 04:33:40 +0300
commit7379e75e12c5d5de2181802f5d2cd71f4c9c73f1 (patch)
tree8199d58144a0e5b5f74d851b760fbd24971b988d /release/scripts/modules
parent2a5d7f929d0032a91f9d2d52da45dfa6d4e87507 (diff)
Fix loading python modules (like netrender)
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/bpy/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index a719e74b19f..7f10be362df 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -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: