Skip to content

Commit 83fc5a5

Browse files
author
Samuel Moors
committed
fix location of object_storage for Dataset easyblock
1 parent 17d5840 commit 83fc5a5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

easybuild/easyblocks/generic/dataset.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
from easybuild.easyblocks.generic.binary import Binary
3434
from easybuild.framework.easyconfig.default import CUSTOM
3535
from easybuild.tools.build_log import EasyBuildError
36-
from easybuild.tools.filetools import compute_checksum, create_index, is_readable, mkdir, move_file, remove_file
37-
from easybuild.tools.filetools import symlink
36+
from easybuild.tools.filetools import compute_checksum, change_dir, create_index, is_readable, mkdir, move_file
37+
from easybuild.tools.filetools import remove_file, symlink
3838
from easybuild.tools.utilities import trace_msg
3939

4040

@@ -72,10 +72,12 @@ def install_step(self):
7272

7373
def post_processing_step(self):
7474
"""Add files to object_storage, remove duplicates, add symlinks"""
75-
trace_msg('adding files to object_storage...')
75+
trace_msg("adding files to 'object_storage'...")
7676

7777
# creating object storage at root of software name to reuse identical files in different versions
78-
object_storage = os.path.join(os.pardir, 'object_storage')
78+
change_dir(self.installdir)
79+
object_storage = os.path.normpath(os.path.join(os.getcwd(), os.pardir, 'object_storage'))
80+
7981
datafiles = create_index(os.curdir)
8082

8183
for datafile in datafiles:

0 commit comments

Comments
 (0)