From ac94c903f607b29fbb1ec7074005a41e92a40b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Mon, 8 Oct 2012 18:26:30 +0200 Subject: [PATCH] python's chmod does not do anything --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 62ab9eb9..b5374c19 100755 --- a/setup.py +++ b/setup.py @@ -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: