bitwise OR.

This commit is contained in:
Ralph Bean 2016-02-22 22:01:27 +00:00
parent 4d127a14ca
commit b95c166ed7

View file

@ -184,6 +184,7 @@ with open(out_file, 'w') as handle:
out_file_uid = os.stat(out_file).st_uid
# give write permissions to group
os.chmod(out_file, stat.S_IWGRP)
st = os.stat(out_file)
os.chmod(out_file, st.st_mode | stat.S_IWGRP)
# chown out file to group
os.chown(out_file, out_file_uid, out_file_grp)