summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-10-10 16:33:41 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2018-10-30 12:53:04 +0000
commit5ab18ceb6afd252896d4b30c5f0d1422df5f469a (patch)
tree7594723d66818e02251c0ede1dc7227b3efff40c
parentdc097a5e8d803c6617370e3cf3516c8340bfc677 (diff)
downloadbuildstream-5ab18ceb6afd252896d4b30c5f0d1422df5f469a.tar.gz
sandbox.py: Remove redundant Sandbox.__directory
-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