mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 12:27:59 +01:00
less calls to coreutils:chmod
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
e5db85e6da
commit
8cae06c7fd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue