mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
same as e1250f217
This commit is contained in:
@@ -60,13 +60,7 @@ class CopyDebugInformation(bpy.types.Operator):
|
|||||||
print(text)
|
print(text)
|
||||||
print("-" * 80)
|
print("-" * 80)
|
||||||
|
|
||||||
if platform.system() == "Windows":
|
context.window_manager.clipboard = text
|
||||||
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)
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user