makes sure the hook is now executable
This commit is contained in:
4
setup.py
4
setup.py
@@ -21,3 +21,7 @@ with open(HOOK_PATH, "w") as txt:
|
|||||||
f"{PYTHON_BIN} {HOOK_SCRIPT_PATH}\n"
|
f"{PYTHON_BIN} {HOOK_SCRIPT_PATH}\n"
|
||||||
"exit 0\n" #make sure she closes
|
"exit 0\n" #make sure she closes
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# make sure its executable
|
||||||
|
st = os.stat(HOOK_PATH)
|
||||||
|
os.chmod(HOOK_PATH, st.st_mode | stat.S_IEXEC)
|
||||||
Reference in New Issue
Block a user