Skip to content

Commit f42e26c

Browse files
TobiasTobias
authored andcommitted
mode constant for sourced-only files
for sourced scripts, no executable bits are necessary
1 parent 4b2ed5c commit f42e26c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

virtualenvwrapper/user_scripts.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@ def run_global(script_name, *args):
5151
return
5252

5353

54-
PERMISSIONS = stat.S_IRWXU | stat.S_IRWXG | stat.S_IROTH | stat.S_IXOTH
54+
PERMISSIONS = (stat.S_IRWXU # read/write/execute, user
55+
| stat.S_IRWXG # read/write/execute, group
56+
| stat.S_IROTH # read, others
57+
| stat.S_IXOTH) # execute, others
58+
PERMISSIONS_SOURCED = (
59+
stat.S_IRUSR # read, user
60+
| stat.S_IWUSR # write, user
61+
| stat.S_IRGRP # read, group
62+
| stat.S_IWGRP # write, group
63+
| stat.S_IROTH) # read, others
5564

5665

5766
GLOBAL_HOOKS = [

0 commit comments

Comments
 (0)