kkpyutil 1.33.3__py3-none-any.whl → 1.33.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kkpyutil-1.33.3.dist-info → kkpyutil-1.33.5.dist-info}/METADATA +1 -1
- kkpyutil-1.33.5.dist-info/RECORD +7 -0
- kkpyutil.py +5 -7
- kkpyutil-1.33.3.dist-info/RECORD +0 -7
- {kkpyutil-1.33.3.dist-info → kkpyutil-1.33.5.dist-info}/LICENSE +0 -0
- {kkpyutil-1.33.3.dist-info → kkpyutil-1.33.5.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
kkpyutil.py,sha256=Fdc9sUfklI7o4BB4dEhFLoMY6RG7DZdAYaOUBabNI3c,107087
|
|
2
|
+
kkpyutil_helper/windows/kkttssave.ps1,sha256=xa3-WzqNh2rGYlOx_I4ewOuCE94gkTO5cEwYH0M67_0,446
|
|
3
|
+
kkpyutil_helper/windows/kkttsspeak.ps1,sha256=7WUUHMmjTQroUWA2Mvdt4JtSt475nZUHQx-qP-7rS6o,305
|
|
4
|
+
kkpyutil-1.33.5.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
|
|
5
|
+
kkpyutil-1.33.5.dist-info/METADATA,sha256=edC3pjZfURk6EAIKUp6Bb1v8wURGdQWb_WI1bRSt1iY,1136
|
|
6
|
+
kkpyutil-1.33.5.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
7
|
+
kkpyutil-1.33.5.dist-info/RECORD,,
|
kkpyutil.py
CHANGED
|
@@ -591,17 +591,15 @@ def alert(content, title='Debug', action='Close'):
|
|
|
591
591
|
- mshta (ms html application host) tend to open vbs using text editor; so we use dedicated vbscript cli instead
|
|
592
592
|
"""
|
|
593
593
|
if PLATFORM == 'Windows':
|
|
594
|
-
# Escape double quotes inside content and title for VBScript
|
|
595
594
|
# vbs uses its own line-end
|
|
596
|
-
|
|
597
|
-
|
|
595
|
+
lines = [f'"{line}"' for line in content.split('\n')]
|
|
596
|
+
vbs_lines = ' & vbCrLf & '.join(lines)
|
|
598
597
|
# Construct the VBScript command for the message box
|
|
599
|
-
vbs_content = f'MsgBox
|
|
598
|
+
vbs_content = f'MsgBox {vbs_lines}, vbOKOnly, "{title}"'
|
|
600
599
|
vbs = osp.join(get_platform_tmp_dir(), 'msg.vbs')
|
|
601
600
|
save_text(vbs, vbs_content)
|
|
602
601
|
cmd = ['cscript', '//Nologo', vbs]
|
|
603
|
-
subprocess.run(cmd
|
|
604
|
-
# Clean up the temporary file
|
|
602
|
+
subprocess.run(cmd)
|
|
605
603
|
os.remove(vbs)
|
|
606
604
|
return cmd
|
|
607
605
|
if PLATFORM == 'Darwin':
|
|
@@ -1516,7 +1514,7 @@ def convert_compound_cases(text, style='pascal', instyle='auto'):
|
|
|
1516
1514
|
|
|
1517
1515
|
def _detect_casing(txt):
|
|
1518
1516
|
case_patterns = {
|
|
1519
|
-
'snake': r'^[a-z]
|
|
1517
|
+
'snake': r'^[a-z][a-z0-9]*(_[a-zA_Z0-9]+)*$',
|
|
1520
1518
|
'SNAKE': r'^[A-Z]+(_[A-Z0-9]+)*$',
|
|
1521
1519
|
'camel': r'^[a-z]+([A-Z][a-z0-9]*)*$',
|
|
1522
1520
|
'kebab': r'^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)+$',
|
kkpyutil-1.33.3.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
kkpyutil.py,sha256=SZkL5zn8I5c-n07PBQ9x-D36bRVMTJQa0nvqYGEsaDQ,107200
|
|
2
|
-
kkpyutil_helper/windows/kkttssave.ps1,sha256=xa3-WzqNh2rGYlOx_I4ewOuCE94gkTO5cEwYH0M67_0,446
|
|
3
|
-
kkpyutil_helper/windows/kkttsspeak.ps1,sha256=7WUUHMmjTQroUWA2Mvdt4JtSt475nZUHQx-qP-7rS6o,305
|
|
4
|
-
kkpyutil-1.33.3.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
|
|
5
|
-
kkpyutil-1.33.3.dist-info/METADATA,sha256=0--MqyDThQpYZaRVP4vPImxTy0noyJbu8Yslf1QcTNQ,1136
|
|
6
|
-
kkpyutil-1.33.3.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
7
|
-
kkpyutil-1.33.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|