mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Add new OS.RPC "open_file" method for PIO Home
This commit is contained in:
@ -82,6 +82,10 @@ class OSRPC(object):
|
|||||||
path.encode(get_filesystem_encoding()) if PY2 else path, locate=True
|
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
|
@staticmethod
|
||||||
def is_file(path):
|
def is_file(path):
|
||||||
return isfile(path)
|
return isfile(path)
|
||||||
|
Reference in New Issue
Block a user