Fix common.open_file for osx
This commit is contained in:
parent
a3268dd403
commit
9360378ae9
@ -232,6 +232,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])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user