[elbe-devel] [PATCH] elbe: shebang: force python2

Kurt Kanzenbach kurt at linutronix.de
Wed Mar 22 10:44:12 CET 2017


Seems like Elbe is written in Python2. However, some distributions ship Python3
as default version. This results in errors like this:

  File "./elbe", line 29
    print 'elbe v' + elbe_version
                 ^
  SyntaxError: Missing parentheses in call to 'print'

So better force the used version to Python2.

Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
 elbe | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbe b/elbe
index c6e84d4..269b192 100755
--- a/elbe
+++ b/elbe
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 #
 # ELBE - Debian Based Embedded Rootfilesystem Builder
 # Copyright (C) 2013  Linutronix GmbH
-- 
2.1.4





More information about the elbe-devel mailing list