A minor bug that's really easy to fix. You can use the /usr/bin/env python trick to make it much more portable. Wikipedia has more information on that: http://en.wikipedia.org/wiki/Shebang_(Unix)
Here's the patch for the trick:
# HG changeset patch
# User Steve Losh <steve@stevelosh.com>
# Date 1237518815 14400
# Node ID 2da0ca25eb6c1d23f497d182b81387f45efd91c7
# Parent 8f1bbdc648a757ac501f37eca20825d074f05c39
Made the shebang more portable.
diff -r 8f1bbdc648a7 -r 2da0ca25eb6c hatta.py
--- a/hatta.py Thu Mar 19 22:59:53 2009 -0400
+++ b/hatta.py Thu Mar 19 23:13:35 2009 -0400
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @copyright: 2008-2009 Radomir Dopieralski <hatta@sheep.art.pl>
Doesn't it make hatta.py fail on platforms that don't have /usr/bin/env installed? I think I'd rely on setup.py handling the replacement, rather than adding another program to the list of dependencies… – Radomir Dopieralski
env is part of IEEE Std 1003.1-2008 ("POSIX"), so it should be part of most platforms. see http://www.opengroup.org/onlinepubs/9699919799/utilities/env.html – MarkusLude
Thank you, I will include the fix in the next version. – Radomir Dopieralski
![[Home]](/+download/logo.png)