This commit is contained in:
luboslenco 2019-09-30 12:01:01 +02:00
commit 3d01b056d0

View file

@ -582,11 +582,11 @@ def open_editor(hx_path=None):
raise FileNotFoundError(f'Code editor executable not found: {ide_bin}. You can change the path in the Armory preferences.')
def open_folder():
if arm.utils.get_os() is 'win':
subprocess.Popen('explorer /select,"' + arm.utils.get_fp() + '"')
if arm.utils.get_os() is 'mac':
if arm.utils.get_os() == 'win':
subprocess.Popen(['explorer', arm.utils.get_fp()])
elif arm.utils.get_os() == 'mac':
subprocess.Popen(['open', arm.utils.get_fp()])
if arm.utils.get_os() is 'linux':
elif arm.utils.get_os() == 'linux':
subprocess.Popen(['xdg-open', arm.utils.get_fp()])
else:
webbrowser.open('file://' + arm.utils.get_fp())