Add new OS.RPC "open_file" method for PIO Home

This commit is contained in:
Ivan Kravets
2019-10-29 17:36:36 +02:00
parent 7cad06ea18
commit 7dbeab11a5

View File

@ -82,6 +82,10 @@ class OSRPC(object):
path.encode(get_filesystem_encoding()) if PY2 else path, locate=True
)
@staticmethod
def open_file(path):
return click.launch(path.encode(get_filesystem_encoding()) if PY2 else path)
@staticmethod
def is_file(path):
return isfile(path)