summaryrefslogtreecommitdiff
path: root/tests/sources/generic/workspace.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sources/generic/workspace.py')
-rw-r--r--tests/sources/generic/workspace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sources/generic/workspace.py b/tests/sources/generic/workspace.py
index 552981a4f..ad115c1ba 100644
--- a/tests/sources/generic/workspace.py
+++ b/tests/sources/generic/workspace.py
@@ -40,9 +40,9 @@ class WorkspaceCreator():
self.datafiles = datafiles
if not project_path:
- project_path = os.path.join(datafiles.dirname, datafiles.basename)
+ project_path = str(datafiles)
else:
- shutil.copytree(os.path.join(datafiles.dirname, datafiles.basename), project_path)
+ shutil.copytree(str(datafiles), project_path)
self.project_path = project_path
self.bin_files_path = os.path.join(project_path, 'files', 'bin-files')