Permalink
Browse files

Use python interpreter when python2 interpreter not available.

  • Loading branch information...
Jacob Marble
Jacob Marble committed Apr 30, 2014
1 parent c21ffb4 commit 16cb28e3a20a9aaf129464a3638b4ece929a21ae
Showing with 10 additions and 1 deletion.
  1. +10 −1 testing/listdrivefiles.py
View
@@ -1,4 +1,13 @@
-#! /usr/bin/env python2
+#! /bin/sh
+"true" '''\'
+if command -v python2; then
+ exec python2 "$0" "$@"
+else
+ exec python "$0" "$@"
+fi
+exit $?
+'''
+
# CUPS Cloudprint - Print via Google Cloud Print
# Copyright (C) 2011 Simon Cadman
#

0 comments on commit 16cb28e

Please sign in to comment.