diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-02-01 04:33:40 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-02-01 04:33:40 +0300 |
commit | 7379e75e12c5d5de2181802f5d2cd71f4c9c73f1 (patch) | |
tree | 8199d58144a0e5b5f74d851b760fbd24971b988d /release/scripts/modules | |
parent | 2a5d7f929d0032a91f9d2d52da45dfa6d4e87507 (diff) |
Fix loading python modules (like netrender)
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy/utils.py | 2 |
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: |