From e1250f21775e52b9604374276050499ae23cd79b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 16 May 2024 16:00:38 +0500 Subject: [PATCH] fix saving debug info to clipboard #4675 now we just rely on blender to make it crossplatform --- src/blenderbim/blenderbim/__init__.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/blenderbim/blenderbim/__init__.py b/src/blenderbim/blenderbim/__init__.py index e54b2d04ac..3a31cbdf26 100644 --- a/src/blenderbim/blenderbim/__init__.py +++ b/src/blenderbim/blenderbim/__init__.py @@ -149,14 +149,7 @@ if sys.modules.get("bpy", None): def execute(self, context): info = format_debug_info(get_debug_info()) - - if platform.system() == "Windows": - command = "echo | set /p nul=" + info - elif platform.system() == "Darwin": # for MacOS - command = 'printf "' + info.replace("\n", "\\n").replace('"', "") + '" | pbcopy' - else: # Linux - command = 'printf "' + info.replace("\n", "\\n").replace('"', "") + '" | xclip -selection clipboard' - subprocess.run(command, shell=True, check=True) + context.window_manager.clipboard = info return {"FINISHED"} class HiddenPanel: