[Bf-extensions-cvs] [b9ba3ab] master: shortfixes
Dealga McArdle
noreply at git.blender.org
Wed Dec 23 21:09:07 CET 2015
Commit: b9ba3ab832d9c0a0f0c177cf56e1317eeedebe4a
Author: Dealga McArdle
Date: Wed Dec 23 21:08:54 2015 +0100
Branches: master
https://developer.blender.org/rBACb9ba3ab832d9c0a0f0c177cf56e1317eeedebe4a
shortfixes
===================================================================
M mesh_tinyCAD/__init__.py
===================================================================
diff --git a/mesh_tinyCAD/__init__.py b/mesh_tinyCAD/__init__.py
index 63351e0..62d6592 100644
--- a/mesh_tinyCAD/__init__.py
+++ b/mesh_tinyCAD/__init__.py
@@ -30,18 +30,19 @@ bl_info = {
}
-if 'VTX' in globals():
- import importlib
- print('tinyCAD: detected reload event.')
- try:
- modules = "VTX V2X XALL BIX CCEN".split()
- for m in modules:
- exec('importlib.reload({0})'.format(m))
- print("tinyCAD: reloaded modules, all systems operational")
-
- except Exception as E:
- print('reload failed with error:')
- print(E)
+if "bpy" in locals():
+ if 'VTX' in locals():
+ import imp
+ print('tinyCAD: detected reload event.')
+ try:
+ modules = "VTX V2X XALL BIX CCEN".split()
+ for m in modules:
+ exec('imp.reload({0})'.format(m))
+ print("tinyCAD: reloaded modules, all systems operational")
+
+ except Exception as E:
+ print('reload failed with error:')
+ print(E)
import os
More information about the Bf-extensions-cvs
mailing list