summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-13 16:05:28 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-14 16:31:31 +0000
commit5d95df761c8335711f27e9ab062c0a20ddd332b1 (patch)
tree9450ef2a3c10aff9f663194b1e3979b9534efe1b
parentb6c7f1eb2c76ac3847d5b6da60b9c31a0a69d875 (diff)
downloaddefinitions-5d95df761c8335711f27e9ab062c0a20ddd332b1.tar.gz
Make SystemBranchDirectory remember an absolute path
This is necessary because a relative pathname may become invalid, if the current working directory changes, either in Morph itself, of when Morph invokes a subprocess and gives the pathname to the system branch root directory to it.
-rw-r--r--morphlib/sysbranchdir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/sysbranchdir.py b/morphlib/sysbranchdir.py
index 827f150b..9ad1e2fd 100644
--- a/morphlib/sysbranchdir.py
+++ b/morphlib/sysbranchdir.py
@@ -47,7 +47,7 @@ class SystemBranchDirectory(object):
def __init__(self,
root_directory, root_repository_url, system_branch_name):
- self.root_directory = root_directory
+ self.root_directory = os.path.abspath(root_directory)
self.root_repository_url = root_repository_url
self.system_branch_name = system_branch_name