wm.py needs import os in some of its execute funcs + now we can have blender2.60x...
[blender.git] / release / scripts / startup / bl_operators / wm.py
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