summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/sandbox/sandbox.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/sandbox/sandbox.py b/buildstream/sandbox/sandbox.py
index 83714efdd..6aea4b54b 100644
--- a/buildstream/sandbox/sandbox.py
+++ b/buildstream/sandbox/sandbox.py
@@ -104,8 +104,7 @@ class Sandbox():
# others are private to this class.
self._root = os.path.join(directory, 'root')
self._output_directory = None
- self.__directory = directory
- self.__scratch = os.path.join(self.__directory, 'scratch')
+ self.__scratch = os.path.join(directory, 'scratch')
for directory_ in [self._root, self.__scratch]:
os.makedirs(directory_, exist_ok=True)
self._vdir = None