From 8d4b5d83e1652dc99c4d79937d78ed9489a57f2a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 16 May 2024 16:13:22 +0500 Subject: [PATCH] same as e1250f217 --- src/blenderbim/blenderbim/bim/module/debug/operator.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/debug/operator.py b/src/blenderbim/blenderbim/bim/module/debug/operator.py index 412d08fd43..8a53d6de83 100644 --- a/src/blenderbim/blenderbim/bim/module/debug/operator.py +++ b/src/blenderbim/blenderbim/bim/module/debug/operator.py @@ -60,13 +60,7 @@ class CopyDebugInformation(bpy.types.Operator): print(text) print("-" * 80) - if platform.system() == "Windows": - command = "echo | set /p nul=" + text - elif platform.system() == "Darwin": # for MacOS - command = 'printf "' + text.replace("\n", "\\n").replace('"', "") + '" | pbcopy' - else: # Linux - command = 'printf "' + text.replace("\n", "\\n").replace('"', "") + '" | xclip -selection clipboard' - subprocess.run(command, shell=True, check=True) + context.window_manager.clipboard = text return {"FINISHED"}