Skip to content

Commit

Permalink
possible fix for #7
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi committed Mar 4, 2019
1 parent 0cc5754 commit b23b996
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BlenderUpdaterCLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ def stop(self):
spinnerCopy.stop()
print('Copying ' + Fore.GREEN + 'done')

opsys = platform.system()
if opsys == 'darwin':
BlenderOSXPath = os.path.join('"' + dir_ + "\\blender.app/Contents/MacOS/blender" + '"')
os.system("chmod +x " + BlenderOSXPath)

# Cleanup
spinnerCleanup = Spinner('Cleanup... ')
spinnerCleanup.start()
Expand Down Expand Up @@ -292,12 +297,9 @@ def stop(self):
# run Blender if -r flag present
if args.run:
print(Fore.MAGENTA + "Starting up Blender...")
opsys = platform.system()
if opsys == 'Windows':
p = subprocess.Popen(os.path.join('"' + dir_ + "\\blender.exe" + '"'))
elif opsys == 'darwin':
BlenderOSXPath = os.path.join('"' + dir_ + "\\blender.app/Contents/MacOS/blender" + '"')
os.system("chmod +x " + BlenderOSXPath)
p = subprocess.Popen(BlenderOSXPath)
elif opsys == 'Linux':
p = subprocess.Popen(os.path.join(dir_ + '/blender'))
Expand Down

0 comments on commit b23b996

Please sign in to comment.