diff --git a/platformio/commands/home/rpc/handlers/os.py b/platformio/commands/home/rpc/handlers/os.py index 1be28fc8..c019fbc7 100644 --- a/platformio/commands/home/rpc/handlers/os.py +++ b/platformio/commands/home/rpc/handlers/os.py @@ -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)