diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2011-09-26 10:29:58 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2011-09-26 10:29:58 +0400 |
commit | 2d91b6cda7e78966e981de84d0d0b27371348b82 (patch) | |
tree | 8416815f91a4ffdde2c03bae79a56d7a12d0831c /release | |
parent | 4b273f013e043d2f64997bc60f0058e0898e49b8 (diff) |
wm.py needs import os in some of its execute funcs + now we can have blender2.60x version :)
I guess someone did a cleanup in the file and forgot to test "add an Add-On" ;)
+ a bug I found while studying the cmake files
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index fd2b14658ad..41dd0eaf64f 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1683,6 +1683,7 @@ class WM_OT_addon_install(Operator): @staticmethod def _module_remove(path_addons, module): + import os module = os.path.splitext(module)[0] for f in os.listdir(path_addons): f_base = os.path.splitext(f)[0] @@ -1699,6 +1700,7 @@ class WM_OT_addon_install(Operator): import traceback import zipfile import shutil + import os pyfile = self.filepath |