From 8a4fce545c254eb24ff329dac596ebd43edcccf4 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 4 Nov 2010 20:18:43 +0000 Subject: [PATCH] Workaround for systems where "python" is Python 3 Reported by H. Krammer (bug #3100015). --- 0install | 4 ++++ 0launch | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/0install b/0install index fc267ee..eac74e7 100755 --- a/0install +++ b/0install @@ -1,4 +1,8 @@ #!/usr/bin/env python +import sys +if sys.version_info[0] > 2: + import os + os.execvp("python2", ["python2"] + sys.argv) import locale from logging import warn diff --git a/0launch b/0launch index 8db3ab0..ad6d221 100755 --- a/0launch +++ b/0launch @@ -1,4 +1,8 @@ #!/usr/bin/env python +import sys +if sys.version_info[0] > 2: + import os + os.execvp("python2", ["python2"] + sys.argv) import locale from logging import warn -- 2.11.4.GIT