Skip to content
Snippets Groups Projects
Commit e98edf71 authored by Klaus Rabbertz's avatar Klaus Rabbertz
Browse files

Remove requirement of recent env executable to ensure C++/Python unbuffered...

Remove requirement of recent env executable to ensure C++/Python unbuffered output; add env. var. to environment instead
parent 037d2829
Branches
Tags
No related merge requests found
......@@ -1190,6 +1190,9 @@ if ( $withpython ) then
echo 'setenv PYTHONPATH '"${PYTHONPATHADD}" >> fnlosrc_source.csh
echo 'export PYTHONPATH='"${PYTHONPATHADD}" >> fnlosrc_source.sh
endif
# Unbuffered Python output to avoid mixing C++/Python
echo 'setenv PYTHONUNBUFFERED 1' >> fnlosrc_source.csh
echo 'export PYTHONUNBUFFERED=1' >> fnlosrc_source.sh
echo ""
echo "ATTENTION: PYTHONPATH environment complemented!"
echo " PYTHONPATH has been set to:"
......
#!/usr/bin/env -S python3 -u
#!/usr/bin/env python3
#-*- coding:utf-8 -*-
### This shebang line only works with recent enough env version: !/usr/bin/env -S python3 -u
### Set PYTHONUNBUFFERED environment variable instead to 1.
#
########################################################################
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment