Skip to content

Commit 5ab3ebb

Browse files
authored
fix sub-directory path (#3464)
When I executed this code, I found that get_mount_point() returns complete paths, e.g. `/root/data/job` instead of "just" the sub-directory, i.e. `job`. Thus `get_support_file` returns the dst directory, instead of the src directory :-/
1 parent 0a29ac2 commit 5ab3ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: qiita_db/environment_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def create_mountpoints():
145145
if qiita_config.test_environment:
146146
# if in test mode, we want to potentially fill the
147147
# new directory with according test data
148-
copytree(get_support_file('test_data', subdir),
148+
copytree(get_support_file('test_data', mountpoint),
149149
join(qiita_config.base_data_dir, subdir))
150150
else:
151151
# in production mode, an empty directory is created

0 commit comments

Comments
 (0)