Skip to content

Commit

Permalink
Fix octal constant on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Dec 5, 2017
1 parent 32578df commit 2e56467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def builder_script_file(target, source, env):
print >> outfile, line
outfile.close()
infile.close()
env.Execute(Chmod(str(target[0]), 0755))
# 1877 = octal 0755
env.Execute(Chmod(str(target[0]), 1877))

env.Append(BUILDERS = {'ScriptFile': Builder(action=builder_script_file)})

Expand Down

0 comments on commit 2e56467

Please sign in to comment.