From 8cae06c7fdc67de0d695f61d69e20952203e5eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Wed, 3 Apr 2013 21:57:34 +0200 Subject: [PATCH] less calls to coreutils:chmod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/kms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kms.py b/src/kms.py index 019ec3c9..bf0d70b0 100755 --- a/src/kms.py +++ b/src/kms.py @@ -128,7 +128,7 @@ class KMS(): with open(cachedir + '/.version', 'w+') as cachev: cachev.write(KMS_VERSION) if shared: - Popen('chmod 666 -- ' + _cachedir + '/.version', shell=True).wait() + os.chmod(_cachedir + '/.version', 0o666) ## Get kmspony directory and kmspony file kmsponies = cachedir + '/kmsponies/' + palettefile @@ -154,7 +154,7 @@ class KMS(): printerr('Unable to run ponytool successfully, you need util-say>=3 for KMS support') exit(1) if shared: - Popen('chmod 666 -- ' + _kmspony, shell=True).wait() + os.chmod(_kmspony, 0o666) return kmspony