Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei S <a.sasin@ultimaker.com>2018-09-18 18:42:01 +0300
committerAleksei S <a.sasin@ultimaker.com>2018-09-18 18:42:01 +0300
commitcb49ffa2d283038d7e1a83e20426bccbc36e2632 (patch)
treeabb35d3a535955573d03355f7cc7995f57742b30 /scripts
parentc764b31e06d4899e90758b9042941f5ecfcd2858 (diff)
Updated the script according to the requested changes
CURA-5734
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check_setting_visibility.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/check_setting_visibility.py b/scripts/check_setting_visibility.py
index 37e489c072..974b922fbd 100644
--- a/scripts/check_setting_visibility.py
+++ b/scripts/check_setting_visibility.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# This script check correctness of settings visibility list
+# This script checks the correctness of the list of visibility settings
#
from typing import Dict
import os
@@ -168,12 +168,12 @@ if __name__ == "__main__":
setting_visibility_items = {}
for file_path in all_setting_visibility_files:
- temp = inspector.getSettingsFromSettingVisibilityFile(file_path)
+ all_settings_from_visibility_type = inspector.getSettingsFromSettingVisibilityFile(file_path)
base_name = os.path.basename(file_path)
- visibility_type = base_name.split('.')[0]
+ visibility_type = base_name.split(".")[0]
- setting_visibility_items[visibility_type] = temp
+ setting_visibility_items[visibility_type] = all_settings_from_visibility_type
has_invalid_settings = inspector.validateSettingsVisibility(setting_visibility_items)