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"}