summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/dev/update_version.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/dev/update_version.py b/scripts/dev/update_version.py
index 96e659236..9f6f76140 100644
--- a/scripts/dev/update_version.py
+++ b/scripts/dev/update_version.py
@@ -28,9 +28,13 @@ import lxml.etree
import qutebrowser
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
+ os.pardir))
+
+from scripts import utils
+
# use basedir to get project root dir
-appdata_path = os.path.join(os.path.dirname(qutebrowser.basedir), "misc",
- "qutebrowser.appdata.xml")
+appdata_path = os.path.join("misc", "qutebrowser.appdata.xml")
version_xpath = '//*[@type="desktop"]/releases'
@@ -90,6 +94,7 @@ if __name__ == "__main__":
args = parser.parse_args()
version = qutebrowser.__version__
+ utils.change_cwd()
bump_version(args.bump)
appdata_tree = read_appdata()