mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 20:38:00 +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:
|
with open(cachedir + '/.version', 'w+') as cachev:
|
||||||
cachev.write(KMS_VERSION)
|
cachev.write(KMS_VERSION)
|
||||||
if shared:
|
if shared:
|
||||||
Popen('chmod 666 -- ' + _cachedir + '/.version', shell=True).wait()
|
os.chmod(_cachedir + '/.version', 0o666)
|
||||||
|
|
||||||
## Get kmspony directory and kmspony file
|
## Get kmspony directory and kmspony file
|
||||||
kmsponies = cachedir + '/kmsponies/' + palettefile
|
kmsponies = cachedir + '/kmsponies/' + palettefile
|
||||||
|
@ -154,7 +154,7 @@ class KMS():
|
||||||
printerr('Unable to run ponytool successfully, you need util-say>=3 for KMS support')
|
printerr('Unable to run ponytool successfully, you need util-say>=3 for KMS support')
|
||||||
exit(1)
|
exit(1)
|
||||||
if shared:
|
if shared:
|
||||||
Popen('chmod 666 -- ' + _kmspony, shell=True).wait()
|
os.chmod(_kmspony, 0o666)
|
||||||
|
|
||||||
return kmspony
|
return kmspony
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue