Upload files to 'settings'
This commit is contained in:
parent
dc8a7c3535
commit
238d27ce86
1 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
||||
############################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue