mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
fix for 3e2ce7a579
This commit is contained in:
parent
2f067be018
commit
24dd5c9cf0
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
@ -374,7 +374,10 @@ class Setup():
|
|||
filein = open('ponysay', 'rb')
|
||||
data = filein.read().decode('utf-8', 'replace')
|
||||
|
||||
data = data.replace('#!/usr/bin/env python', '#!/usr/bin/env ' + env)
|
||||
if '#!/usr/bin/env python3' in data:
|
||||
data = data.replace('#!/usr/bin/env python3', '#!/usr/bin/env ' + env)
|
||||
else:
|
||||
data = data.replace('#!/usr/bin/env python', '#!/usr/bin/env ' + env)
|
||||
for sharedir in [item[0] for item in sharedirs]:
|
||||
data = data.replace('/usr/share/ponysay/' + sharedir, conf[sharedir])
|
||||
for sharefile in sharefiles:
|
||||
|
|
Loading…
Reference in a new issue