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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Vegdahl <cessen@cessen.com>2010-11-18 03:50:02 +0300
committerNathan Vegdahl <cessen@cessen.com>2010-11-18 03:50:02 +0300
commite58584265122e5b85903f109ac3458c3f78ccbb9 (patch)
tree9921f740ade0499ebf3336dd10e52ae5cfc0d6f2 /rigify/__init__.py
parent2839bcf9ee36b329d2080f95e8fd872fde6d6ddb (diff)
Check for '.' in rigify rig types was preventing *.py files from being loaded.
Diffstat (limited to 'rigify/__init__.py')
-rw-r--r--rigify/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py
index 98a807bd..2db7c808 100644
--- a/rigify/__init__.py
+++ b/rigify/__init__.py
@@ -51,13 +51,13 @@ def get_rig_list(path):
files.sort()
for f in files:
+ is_dir = os.path.isdir(os.path.join(SEARCH_DIR_ABS, f)) # Whether the file is a directory
if f[0] in (".", "_"):
pass
- elif "." in f:
+ elif f.count(".") >= 2 or (is_dir and "." in f):
print("Warning: %r, filename contains a '.', skipping" % os.path.join(SEARCH_DIR_ABS, f))
else:
- f_abs = os.path.join(SEARCH_DIR_ABS, f)
- if os.path.isdir(f_abs):
+ if is_dir:
# Check directories
module_name = os.path.join(path, f).replace(os.sep, ".")
try: