diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-09-29 22:17:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-09-29 22:17:48 +0200 |
commit | 24dd5c9cf0f62f33b0a20ea1f5555a826bf4473d (patch) | |
tree | 1f7fb1c7fb7d58bf04c7e144687dc3212c2eae46 | |
parent | 2f067be018a2980e38704921e1a203ed9feaf317 (diff) | |
download | ponysay-24dd5c9cf0f62f33b0a20ea1f5555a826bf4473d.tar.gz ponysay-24dd5c9cf0f62f33b0a20ea1f5555a826bf4473d.tar.bz2 ponysay-24dd5c9cf0f62f33b0a20ea1f5555a826bf4473d.zip |
fix for https://github.com/erkin/ponysay/commit/3e2ce7a5793fc975b2808aeb377c7f7cc5ca02e6
-rwxr-xr-x | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |