We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c69a16 commit c03678eCopy full SHA for c03678e
easybuild/easyblocks/g/gromacs.py
@@ -569,9 +569,10 @@ def get_lib_subdirs(self):
569
libname = f'libgromacs*.{self.libext}'
570
571
lib_subdirs = []
572
- for lib_path in glob.glob(os.path.join(self.installdir, '**', libname)):
573
- # generate relative path from installdir to subdir of libname
574
- lib_relpath = lib_path[len(self.installdir) + 1:]
+ real_installdir = os.path.realpath(self.installdir)
+ for lib_path in glob.glob(os.path.join(real_installdir, '**', libname)):
+ lib_relpath = os.path.realpath(lib_path) # avoid symlinks
575
+ lib_relpath = lib_relpath[len(real_installdir) + 1:] # relative path from installdir
576
subdir = lib_relpath.split(os.sep)[0:-1]
577
lib_subdirs.append(os.path.join(*subdir))
578
0 commit comments