diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-10-08 18:26:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-10-08 18:26:30 +0200 |
commit | ac94c903f607b29fbb1ec7074005a41e92a40b4b (patch) | |
tree | fcc73414e4d710b0d127bb301f1c3ab9a029cf71 | |
parent | 5c736f63ae56b4a1ee464dd39e26315d3b95cfd1 (diff) | |
download | ponysay-ac94c903f607b29fbb1ec7074005a41e92a40b4b.tar.gz ponysay-ac94c903f607b29fbb1ec7074005a41e92a40b4b.tar.bz2 ponysay-ac94c903f607b29fbb1ec7074005a41e92a40b4b.zip |
python's chmod does not do anything
-rwxr-xr-x | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -502,8 +502,10 @@ class Setup(): if not os.path.exists(pdir): print('Creating intermediate-level directories needed for ' + dir) os.makedirs(pdir) - print('Creating directory ' + dir + ' with mode mask 6777') - os.mkdir(dir, 0o6777) + print('Creating directory ' + dir) + os.mkdir(dir) + print('Setting permission mode mask for ' + dir + ' to 6777') + Popen('chmod 6777 -- ' + dir, shell=True).wait() for shell in [item[0] for item in shells]: if conf[shell] is not None: for command in commands: |