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

PEP8 fixes for PR #2333 (FixLocalEnv) by autopep8 #2334

Closed
wants to merge 1 commit into from
Closed
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
13 changes: 13 additions & 0 deletions ganga/GangaLHCb/Lib/RTHandlers/GaudiExecRTHandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,19 @@ def flush_streams(pipe):
# Extract any/_all_ (b/g)zip files on the WN
extractAllTarFiles('.')

runenv = dict()
result = subprocess.run(["bash", "-lc",
"source /cvmfs/lhcb.cern.ch/lib/LbEnv && printenv"],
capture_output=True, encoding='utf-8')
for line in result.stdout.split('\\n'):
varval = line.strip().split('=')
if len(varval) < 2:
pass
else:
content = ''.join(varval[1:])
if not str(content).startswith('() {'):
runenv[varval[0]] = content

print("Executing: %s" % '###COMMAND###'+' '+' '.join(sys.argv[1:]))

# Execute the actual command on the WN
Expand Down
Loading