[Pkg-mozext-commits] [adblock-plus] 14/41: Issue 2020 - build.py should be callable from any directory

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 18:21:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 5d6526fb48446807c8ac0c15caa76a067f2e8456
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Feb 25 21:40:23 2015 +0100

    Issue 2020 - build.py should be callable from any directory
---
 build.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/build.py b/build.py
index 7c4860d..92f7256 100755
--- a/build.py
+++ b/build.py
@@ -3,13 +3,14 @@
 
 import os, sys, subprocess
 
-DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependencies.py")
+BASE_DIR = os.path.dirname(__file__)
+DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py")
 
 try:
-  subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT])
+  subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR])
 except subprocess.CalledProcessError as e:
   print >>sys.stderr, e
   print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
 
 import buildtools.build
-buildtools.build.processArgs('.', sys.argv)
+buildtools.build.processArgs(BASE_DIR, sys.argv)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list