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
|
# Executing the file
|
||||||
|
|
||||||
if blendfile:
|
if blendfile:
|
||||||
Popen([get_current_blender(), path])
|
Popen([get_current_blender(win), path])
|
||||||
|
|
||||||
# Every blend file opening should be recorded to history. Because then
|
# Every blend file opening should be recorded to history. Because then
|
||||||
# on multiuser, the other users should somehow know that changes were
|
# 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
|
# Now before we copy blend file we need to check whether Blender is even
|
||||||
# installed.
|
# 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.
|
# 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
|
# Now what we are going to do is start blender using a little expression
|
||||||
# to force it to save file as.
|
# to force it to save file as.
|
||||||
|
|
||||||
os.system(get_current_blender()\
|
os.system(get_current_blender(win)\
|
||||||
+" -b "\
|
+" -b "\
|
||||||
+from_path.replace(" ", "\ ")\
|
+from_path.replace(" ", "\ ")\
|
||||||
+" --python-expr import\ bpy\;\ bpy.ops.wm.save_as_mainfile\(filepath=\\\""\
|
+" --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
|
return to_path
|
||||||
|
|
||||||
def get_current_blender():
|
def get_current_blender(win):
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue