wm.py needs import os in some of its execute funcs + now we can have blender2.60x...
authorDalai Felinto <dfelinto@gmail.com>
Mon, 26 Sep 2011 06:29:58 +0000 (06:29 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 26 Sep 2011 06:29:58 +0000 (06:29 +0000)
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

build_files/cmake/macros.cmake
release/scripts/startup/bl_operators/wm.py

index aec7a9fd96c960dc4dfa0f1ee86406053ca1bcce..ef4edca1b220982ecaa6288d1032f5c1e26b581e 100644 (file)
@@ -482,7 +482,7 @@ macro(get_blender_version)
        if(${_out_version_char_empty})
                set(BLENDER_VERSION_CHAR_INDEX "0")
        else()
-               set(_char_ls a b c d e f g h i j k l m n o p q r s t u v w q y z)
+               set(_char_ls a b c d e f g h i j k l m n o p q r s t u v w x y z)
                list(FIND _char_ls ${BLENDER_VERSION_CHAR} _out_version_char_index)
                math(EXPR BLENDER_VERSION_CHAR_INDEX "${_out_version_char_index} + 1")
                unset(_char_ls)
index fd2b14658ad94d8cf7e31c7729b5efd39d818c22..41dd0eaf64fee6d973b08a6feb68a5d0f61d0620 100644 (file)
@@ -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