diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-05-30 12:02:20 +0300 |
---|---|---|
committer | Ilya Zverev <ilya@zverev.info> | 2017-07-04 11:26:12 +0300 |
commit | 1fafff5b00b81e89056bc754589c2f3bc3a6aacd (patch) | |
tree | 7ec2809ea4feaf6b98a07b8a03672b7d9e6ed1ec /tools/python | |
parent | accc48d7b86be276efa07c2a7ee33bd72e66cd56 (diff) |
Added possibility to run from IDE
Diffstat (limited to 'tools/python')
-rwxr-xr-x | tools/python/generate_styles_override.py | 4 | ||||
-rw-r--r-- | tools/python/stylesheet/drules_info.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/python/generate_styles_override.py b/tools/python/generate_styles_override.py index 4cf542ff8e..4620b35306 100755 --- a/tools/python/generate_styles_override.py +++ b/tools/python/generate_styles_override.py @@ -10,14 +10,14 @@ def copy_style_file(style_path, drules_suffix, target_path): print('Path {0} is not found'.format(style_path)) return - drules_proto_path = os.path.join(style_path, 'drules_proto.bin') + drules_proto_path = os.path.join(style_path, 'drules_proto_design.bin') if not os.path.exists(drules_proto_path): print('Path {0} is not found'.format(drules_proto_path)) return shutil.copyfile(drules_proto_path, os.path.join(target_path, 'drules_proto' + drules_suffix + '.bin')) for density in ['6plus', 'hdpi', 'mdpi', 'xhdpi', 'xxhdpi']: - res_path = os.path.join(style_path, 'resources-' + density) + res_path = os.path.join(style_path, 'resources-' + density + "_design") if os.path.exists(res_path): shutil.copytree(res_path, os.path.join(target_path, 'resources-' + density + drules_suffix)) diff --git a/tools/python/stylesheet/drules_info.py b/tools/python/stylesheet/drules_info.py index 5b0f2acec6..c3e83fa534 100644 --- a/tools/python/stylesheet/drules_info.py +++ b/tools/python/stylesheet/drules_info.py @@ -41,9 +41,9 @@ def GetClassesZoomRange(drules_path): zooms[1] = elem.scale if zooms[0] != -1: if name in result: - if result[name][0]< zooms[0]: + if result[name][0] < zooms[0]: zooms[0] = result[name][0] - if result[name][1]> zooms[1]: + if result[name][1] > zooms[1]: zooms[1] = result[name][1] result[name] = zooms return result |