Fix common.open_file for osx

This commit is contained in:
Calum Lind 2012-05-08 10:00:22 +01:00
parent bafd0209af
commit dac524ccf3
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ def open_file(path):
""" """
if windows_check(): if windows_check():
os.startfile("%s" % path) os.startfile("%s" % path)
elif osx_check():
subprocess.Popen(["open", "%s" % path])
else: else:
subprocess.Popen(["xdg-open", "%s" % path]) subprocess.Popen(["xdg-open", "%s" % path])