diff --git a/devlib/target.py b/devlib/target.py index 8cd7615ef..fa9f92701 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -1321,7 +1321,7 @@ async def tempfile(self, prefix='', suffix=''): uuid=uuid.uuid4().hex, suffix=suffix, ) - path = self.get_workpath(name) + self.path.join(self.tmp_directory, name) if (await self.file_exists.asyn(path)): raise FileExistsError('Path already exists on the target: {}'.format(path)) else: