From 238d27ce865872f6890548513c044132209e8ea4 Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Sat, 19 Dec 2020 10:19:38 +0000 Subject: [PATCH] Upload files to 'settings' --- settings/oscalls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/settings/oscalls.py b/settings/oscalls.py index e8b7e44..abf41ed 100644 --- a/settings/oscalls.py +++ b/settings/oscalls.py @@ -90,7 +90,7 @@ def file_open(win, path): # Executing the file if blendfile: - Popen([get_current_blender(), path]) + Popen([get_current_blender(win), path]) # Every blend file opening should be recorded to history. Because then # on multiuser, the other users should somehow know that changes were @@ -150,7 +150,7 @@ def copy_file(win, from_path, to_path, new_name=""): # Now before we copy blend file we need to check whether Blender is even # installed. - noblender = os.system(get_current_blender()+" -v") # It's a simple version check. + noblender = os.system(get_current_blender(win)+" -v") # It's a simple version check. # If there is no Blender installed os.system will return a value higher then 0. @@ -160,7 +160,7 @@ def copy_file(win, from_path, to_path, new_name=""): # Now what we are going to do is start blender using a little expression # to force it to save file as. - os.system(get_current_blender()\ + os.system(get_current_blender(win)\ +" -b "\ +from_path.replace(" ", "\ ")\ +" --python-expr import\ bpy\;\ bpy.ops.wm.save_as_mainfile\(filepath=\\\""\ @@ -177,7 +177,7 @@ def copy_file(win, from_path, to_path, new_name=""): return to_path -def get_current_blender(): +def get_current_blender(win): ############################################################################