Skip to content

Commit eb345dd

Browse files
committed
Use decimal representation in chmod mask to support both python 2 and 3
1 parent 57eafcb commit eb345dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline/compilers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ def execute_command(self, command, cwd=None, stdout_captured=None):
150150
if stdout_captured:
151151
output_filename = os.path.join(cwd or os.curdir, stdout_captured)
152152
shutil.move(stdout.name, output_filename)
153-
os.chmod(output_filename, 0644)
153+
os.chmod(output_filename, 420) # 644 in decimal
154154
else:
155155
os.remove(stdout.name)

0 commit comments

Comments
 (0)