Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gb2_proxy_init error due to wrong HOME from gbasf2 setup script #141

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions b2luigi/batch/processes/gbasf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,10 @@ def get_gbasf2_env(gbasf2_install_directory=None):
echo_gbasf2_env_command, check=True, stdout=subprocess.PIPE, encoding="utf-8"
).stdout
gbasf2_env = dict(line.split("=", 1) for line in gbasf2_env_string.splitlines())
# The gbasf2 setup script on sets HOME to /ext/home/ueda if it's unset,
# which later causes problems in the gb2_proxy_init subprocess. Therefore,
# reset it to the caller's HOME.
gbasf2_env["HOME"] = os.getenv("HOME")
return gbasf2_env


Expand Down