Dear EasyBuilders,
the easyconfig for AUGUSTUS includes a setting for the AUGUSTUS_CONFIG_PATH
which is located in the installation directory. However, it seems that
workflows using AUGUSTUS frequently require write permission on this path. We
solved this now (after a manual fix to the module file) by adding the
modluafooter below to the eb-file. It is not pretty but it seems to do the
trick.
I am just wondering if this is abusing the footer too much (i.e. can it lead to
unexpected side-effects) and if there is a better way dealing with this problem?
Best wishes
Stefan
#modextravars = {'AUGUSTUS_CONFIG_PATH': '%(installdir)s/config'}
modluafooter = (
'local global_config = "%(installdir)s/config"\n'
'local local_config = pathJoin(os.getenv("HOME"), "augustus_config")\n\n'
'setenv("AUGUSTUS_CONFIG_PATH", local_config)\n\n'
'if mode() == "load" then\n'
' if (isDir(local_config)) then\n'
' LmodMessage("setting AUGUSTUS_CONFIG_PATH to " .. local_config)\n'
' else\n'
' LmodMessage("creating a copy of EBROOTAUGUSTUS/config in your $HOME and
")\n'
' execute {cmd="cp -r " .. global_config .. " " .. local_config,
modeA={"load"}}\n'
' LmodMessage("setting AUGUSTUS_CONFIG_PATH to " .. local_config)\n'
' end\n'
'end\n'
)
--
Scientific Computing
Carl von Ossietzky University Oldenburg
School of Mathematics and Natural Sciences
26111 Oldenburg, Germany
Office: W03 1-139
Phone: +49-441-798 3147
E-Mail: [email protected]<mailto:[email protected]>
www: http://www.uni-oldenburg.de/fk5/wr