Skip to content

Commit 7718744

Browse files
committed
fix #28, e.g. print issue
1 parent b9f8720 commit 7718744

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scorep/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()
162162
else:
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!")

scorep/subsystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)