File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ dependencies:
10
10
- robocorp-truststore=0.8.0 # https://pypi.org/project/robocorp-truststore/
11
11
- pip=23.2.1 # https://pip.pypa.io/en/stable/news
12
12
- pip :
13
- - robocorp==1.4.3 # https://pypi.org/project/robocorp
13
+ - robocorp==1.6.2 # https://pypi.org/project/robocorp
14
14
- robocorp-windows==1.0.1 # https://pypi.org/project/robocorp-browser
Original file line number Diff line number Diff line change 17
17
FONT_SIZE = os .getenv ("NOTEPAD_FONT_SIZE" , "12" )
18
18
19
19
20
- def get_win_version () -> str :
21
- """Windows only utility which returns the current Windows major version."""
22
- # Windows terminal `ver` command is bugged, until that's fixed, check by build
23
- # number. (the same applies for `platform.version()`)
24
- WINDOWS_10_VERSION = "10"
25
- WINDOWS_11_BUILD = 22000
26
- version_parts = platform .version ().split ("." )
27
- major = version_parts [0 ]
28
- if major == WINDOWS_10_VERSION and int (version_parts [2 ]) >= WINDOWS_11_BUILD :
29
- major = "11"
30
-
31
- return major
32
-
33
-
34
20
@setup
35
21
def open_close_notepad (task ):
36
22
"""Opens Notepad for automation, then closes it at the end."""
@@ -52,7 +38,7 @@ def _select_property(unique_id: str, value: str):
52
38
53
39
54
40
def change_font_settings (family : str , style : str , size : str ):
55
- ver = get_win_version () # slightly different automation based on Windows version
41
+ ver = desktop . get_win_version () # slightly different automation based on Windows version
56
42
57
43
# Opens the Edit menu and goes into Font.
58
44
if ver == "11" :
You can’t perform that action at this time.
0 commit comments