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:
authorIan Thompson <quornian@googlemail.com>2008-07-27 00:02:10 +0400
committerIan Thompson <quornian@googlemail.com>2008-07-27 00:02:10 +0400
commit6531d859ba4f61d6741b0e06bff07d07b3231910 (patch)
tree296190829a9738a2cd04b110033e6a9f12075ce7 /release/scripts/textplugin_imports.py
parent9f19d88a5d5430b00ed63024a0832b28298dd6f7 (diff)
TextPlugin update: Converted try-except blocks to use try-catch-else to allow better error tracking. Commented the descriptor classes and improved variable support for basic types (string, list, etc.)
Diffstat (limited to 'release/scripts/textplugin_imports.py')
-rw-r--r--release/scripts/textplugin_imports.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/textplugin_imports.py b/release/scripts/textplugin_imports.py
index dd98ab7a26e..16d27ac1004 100644
--- a/release/scripts/textplugin_imports.py
+++ b/release/scripts/textplugin_imports.py
@@ -8,13 +8,13 @@ Tooltip: 'Lists modules when import or from is typed'
"""
# Only run if we have the required modules
-OK = False
try:
import bpy, sys
from BPyTextPlugin import *
- OK = True
except ImportError:
- pass
+ OK = False
+else:
+ OK = True
def main():
txt = bpy.data.texts.active