From 89d3ee995dc2333c9ffcd41877a572b5f89d392c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 29 Sep 2023 15:26:57 +0500 Subject: [PATCH] Workaround for #3778 --- src/blenderbim/blenderbim/bim/operator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/operator.py b/src/blenderbim/blenderbim/bim/operator.py index a8a675ef91..7b491e58be 100644 --- a/src/blenderbim/blenderbim/bim/operator.py +++ b/src/blenderbim/blenderbim/bim/operator.py @@ -212,7 +212,7 @@ class FileAssociate(bpy.types.Operator): self.layout.label(text="On the next step to create file association ") self.layout.label(text="the system console will be opened ") self.layout.label(text=f"and you will be asked to type command") - self.layout.label(text=f'"{command}"') + self.layout.label(text=f"{command}") self.layout.label(text="to create an association.") def invoke(self, context, event): @@ -241,7 +241,7 @@ class FileAssociate(bpy.types.Operator): ps_script_path = os.path.join(src_dir, "windows_bbim_association.ps1") # NOTE: call powershell with RunAs to get admin rights from user - subprocess.run(["powershell", "-file", ps_script_path, binary_path], shell=True) + subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", ps_script_path, binary_path], shell=True) def install_desktop_linux(self, src_dir=None, destdir="/tmp", binary_path="/usr/bin/blender"): """Creates linux file assocations and launcher icon"""