Fix Mac build, patch #1091 by Humberto Diogenes.

This commit is contained in:
Georg Brandl 2007-09-03 07:27:49 +00:00
parent e4ac7504c9
commit c76473d887
8 changed files with 18 additions and 16 deletions

View file

@ -80,11 +80,11 @@ def makescript(filename, compiler):
"""Create a wrapper script for a compiler"""
dirname = os.path.split(filename)[0]
if not os.access(dirname, os.X_OK):
os.mkdir(dirname, 0755)
os.mkdir(dirname, 0o755)
fp = open(filename, 'w')
fp.write(SCRIPT % compiler)
fp.close()
os.chmod(filename, 0755)
os.chmod(filename, 0o755)
print('fixapplepython23: Created', filename)
def main():