Permalink
Browse files

fix for 3e2ce7a

  • Loading branch information...
1 parent 2f067be commit 24dd5c9cf0f62f33b0a20ea1f5555a826bf4473d @maandree maandree committed Sep 29, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 setup.py
View
@@ -374,7 +374,10 @@ def compress(source, destination, ext):
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:

0 comments on commit 24dd5c9

Please sign in to comment.