From: Ralf Jung Date: Thu, 18 Jun 2015 11:12:17 +0000 (+0200) Subject: don't hard-code the path to the python interpreter X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/HEAD don't hard-code the path to the python interpreter --- diff --git a/mass_build.py b/mass_build.py index 553282b..5b7a9dc 100755 --- a/mass_build.py +++ b/mass_build.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # mass-build - Easily Build Software Involving a Large Amount of Source Repositories # Copyright (C) 2012-2013 Ralf Jung # diff --git a/vcs.py b/vcs.py index 9f53fe2..3fcca6d 100644 --- a/vcs.py +++ b/vcs.py @@ -86,6 +86,7 @@ class Git: print() def version(self): + os.chdir(self.folder) v = git.describe() return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)