kkpyutil 1.49.0__py3-none-any.whl → 1.49.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kkpyutil
3
- Version: 1.49.0
3
+ Version: 1.49.1
4
4
  Summary: Building blocks for sysadmin and DevOps
5
5
  Home-page: https://github.com/kakyoism/kkpyutil/
6
6
  License: MIT
@@ -0,0 +1,7 @@
1
+ kkpyutil.py,sha256=UUHMDWsRPPFUbwv9lv8pF2j0Hbq5bMDFrL2aWYBCKSA,121850
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.49.1.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
5
+ kkpyutil-1.49.1.dist-info/METADATA,sha256=LKmnog3BRiOGBJmYcT_FQIHTJUBPdUEsLvk1XTlu-6Q,1136
6
+ kkpyutil-1.49.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
7
+ kkpyutil-1.49.1.dist-info/RECORD,,
kkpyutil.py CHANGED
@@ -3212,11 +3212,14 @@ def json_from_text(json_str):
3212
3212
 
3213
3213
 
3214
3214
  def prompt_macos_admin_password(action="Your operation"):
3215
+ # Use {{ }} to escape curly braces in an f-string for AppleScript lists
3215
3216
  applescript = f'''
3216
- display dialog "{action} requires administrator privileges. Please enter your password:" default answer "" with hidden answer buttons {"Cancel", "OK"} default button "OK"
3217
- text returned of the result
3218
- '''
3217
+ display dialog "{action} requires administrator privileges. Please enter your password:" default answer "" with hidden answer buttons {{"Cancel", "OK"}} default button "OK"
3218
+ text returned of the result
3219
+ '''
3219
3220
  try:
3221
+ # We add 'with echoing' logic or focus if needed,
3222
+ # but the main fix is the braces below.
3220
3223
  result = subprocess.run(
3221
3224
  ['osascript', '-e', applescript],
3222
3225
  capture_output=True,
@@ -3224,8 +3227,8 @@ text returned of the result
3224
3227
  check=True
3225
3228
  )
3226
3229
  return result.stdout.strip()
3227
- except subprocess.CalledProcessError:
3228
- # User cancelled the dialog
3230
+ except subprocess.CalledProcessError as e:
3231
+ # If the dialog doesn't show, check e.stderr for AppleScript errors
3229
3232
  return None
3230
3233
 
3231
3234
 
@@ -3233,8 +3236,7 @@ text returned of the result
3233
3236
 
3234
3237
 
3235
3238
  def _test():
3236
- # print(say('hello'))
3237
- print(create_guid())
3239
+ sync_dirs('/Volumes/public/Audio/Tools/WwisePlugins/MiaSidechainRecv/2025.2.3.1/Wwise2023.1/Authoring', '/Library/Application Support/Audiokinetic/Wwise 2023.1.14.8770/Authoring', sudo=True)
3238
3240
 
3239
3241
 
3240
3242
  if __name__ == '__main__':
@@ -1,7 +0,0 @@
1
- kkpyutil.py,sha256=1iRFRACJJ87sA4ZimVznl4-caKzxB_VVkMnWiqVn_3U,121453
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.49.0.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
5
- kkpyutil-1.49.0.dist-info/METADATA,sha256=4zhDruYqdoicThlEjVhbwFlAaDQzkr9fPTjZvjZ16-o,1136
6
- kkpyutil-1.49.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
7
- kkpyutil-1.49.0.dist-info/RECORD,,