From b847653d4da5236d487648f93bcdcc90a2d9997e Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 18 Jun 2015 13:12:17 +0200 Subject: [PATCH] don't hard-code the path to the python interpreter --- mass_build.py | 2 +- vcs.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2