Commit a24c2090 authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.9.1 minor fix on utils/choose_default_python.py

parent a9c42a9f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.9.0"
(defproject python/lein-template "0.9.1"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+4 −2
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ prefer python3 over python2.7,

"""

from __future__ import print_function

import os


@@ -23,7 +25,7 @@ def first_existing_file(files):


def main():
    print first_existing_file([
    print(first_existing_file([
        "~/bin/python3",
        "~/bin/python2.7",
        "~/bin/python",
@@ -34,7 +36,7 @@ def main():
        "/opt/python2.7/bin/python",
        "/usr/bin/python2.7",
        "/usr/bin/python",
    ])
    ]))


if __name__ == '__main__':