From 7f9a7a282f80c059c70a22c8ec2744690d4c5805 Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Fri, 15 Apr 2016 11:23:52 +0200 Subject: [PATCH 1/3] Make update_3rdparty.py install correctly when run from any directory --- scripts/dev/update_3rdparty.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dev/update_3rdparty.py b/scripts/dev/update_3rdparty.py index 16e604c84..f836492d0 100755 --- a/scripts/dev/update_3rdparty.py +++ b/scripts/dev/update_3rdparty.py @@ -26,6 +26,7 @@ import urllib.error import shutil import json import os +import sys def get_latest_pdfjs_url(): @@ -65,6 +66,7 @@ def update_pdfjs(target_version=None): url = ('https://github.com/mozilla/pdf.js/releases/download/' 'v{0}/pdfjs-{0}-dist.zip').format(target_version) + os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..', '..')) target_path = os.path.join('qutebrowser', '3rdparty', 'pdfjs') print("=> Downloading pdf.js {}".format(version)) try: From 1f66d74f011c8a41ea192f8908704583bfe259f3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Apr 2016 19:12:10 +0200 Subject: [PATCH 2/3] Use __file__ instead of sys.argv[0] --- scripts/dev/update_3rdparty.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dev/update_3rdparty.py b/scripts/dev/update_3rdparty.py index f836492d0..5895bd177 100755 --- a/scripts/dev/update_3rdparty.py +++ b/scripts/dev/update_3rdparty.py @@ -66,7 +66,8 @@ def update_pdfjs(target_version=None): url = ('https://github.com/mozilla/pdf.js/releases/download/' 'v{0}/pdfjs-{0}-dist.zip').format(target_version) - os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '..', '..')) + os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), + '..', '..')) target_path = os.path.join('qutebrowser', '3rdparty', 'pdfjs') print("=> Downloading pdf.js {}".format(version)) try: From 98bc1c9f85612d052f90c8da3074923fef9a88cc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Apr 2016 19:12:16 +0200 Subject: [PATCH 3/3] Regenerate authors --- README.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/README.asciidoc b/README.asciidoc index 3204e93c4..8c54204e9 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -222,6 +222,7 @@ Contributors, sorted by the number of commits in descending order: * Johannes Martinsson * Jean-Christophe Petkovich * Jay Kamat +* Jan Verbeek * Helen Sherwood-Taylor * HalosGhost * Gregor Pohl