File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def set_init_environment(scorep_config=[], keep_files=False):
4747
4848 preload_str = scorep_ld_preload + " " + subsystem_lib_name
4949 if "LD_PRELOAD" in os .environ :
50- print ("LD_PRELOAD is already specified. If Score-P is already loaded this might lead to errors." , file = sys . stderr )
50+ sys . stderr . write ("LD_PRELOAD is already specified. If Score-P is already loaded this might lead to errors." )
5151 preload_str = preload_str + " " + os .environ ["LD_PRELOAD" ]
5252 os .environ ["LD_PRELOAD" ] = preload_str
5353 os .environ ["SCOREP_PYTHON_BINDINGS_INITALISED" ] = "true"
@@ -161,4 +161,4 @@ def main(argv=None):
161161 scorep_main ()
162162else :
163163 if ("SCOREP_PYTHON_BINDINGS_INITALISED" not in os .environ ) or (os .environ ["SCOREP_PYTHON_BINDINGS_INITALISED" ] != "true" ):
164- print ("scorep needs to be loaded using \" python -m scorep <script>\" . Please be aware that scorep might not work correctly!" , file = sys . stderr )
164+ sys . stderr . write ("scorep needs to be loaded using \" python -m scorep <script>\" . Please be aware that scorep might not work correctly!" )
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def generate(scorep_config, keep_files=False):
6060
6161 temp_dir = tempfile .mkdtemp (prefix = "scorep." )
6262 if keep_files :
63- print ("Score-P files are keept at: {}" .format (temp_dir ), file = sys .stderr )
63+ sys . stderr . write ("Score-P files are keept at: {}" .format (temp_dir ), file = sys .stderr )
6464
6565 with open (temp_dir + "/scorep_init.c" , "w" ) as f :
6666 f .write (scorep_adapter_init )
You can’t perform that action at this time.
0 commit comments