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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-02-12 15:32:39 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-02-12 15:33:33 +0300
commit87c4f309543a1fed5d7fe377dfdbf48ccf960380 (patch)
tree1c38ea804911520507708ee79078cddc0a115e6b /release
parent20f78dc12f9c17b52e2be58d337ffbd113dfab66 (diff)
Fix T61455: Import any add-on broken
recent split userpref.py out of wm.py (rB9ec944bbab7a) forgot to move 'module_filesystem_remove' there as well...
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/userpref.py14
-rw-r--r--release/scripts/startup/bl_operators/wm.py14
2 files changed, 14 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index 072899320e4..a43aac786ed 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -36,6 +36,20 @@ from bpy.props import (
from bpy.app.translations import pgettext_tip as tip_
+def module_filesystem_remove(path_base, module_name):
+ import os
+ module_name = os.path.splitext(module_name)[0]
+ for f in os.listdir(path_base):
+ f_base = os.path.splitext(f)[0]
+ if f_base == module_name:
+ f_full = os.path.join(path_base, f)
+
+ if os.path.isdir(f_full):
+ os.rmdir(f_full)
+ else:
+ os.remove(f_full)
+
+
class WM_OT_keyconfig_activate(Operator):
bl_idname = "wm.keyconfig_activate"
bl_label = "Activate Keyconfig"
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 3c6e8196c02..dc1bbb4467c 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -144,20 +144,6 @@ def execute_context_assign(self, context):
return operator_path_undo_return(context, data_path)
-def module_filesystem_remove(path_base, module_name):
- import os
- module_name = os.path.splitext(module_name)[0]
- for f in os.listdir(path_base):
- f_base = os.path.splitext(f)[0]
- if f_base == module_name:
- f_full = os.path.join(path_base, f)
-
- if os.path.isdir(f_full):
- os.rmdir(f_full)
- else:
- os.remove(f_full)
-
-
class WM_OT_context_set_boolean(Operator):
"""Set a context value"""
bl_idname = "wm.context_set_boolean"