mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Add os.call_path_module_func RPC
This commit is contained in:
@ -89,6 +89,14 @@ class OSRPC:
|
||||
def open_file(path):
|
||||
return click.launch(path)
|
||||
|
||||
@staticmethod
|
||||
def call_path_module_func(name, args, **kwargs):
|
||||
return getattr(os.path, name)(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def get_path_separator():
|
||||
return os.sep
|
||||
|
||||
@staticmethod
|
||||
def is_file(path):
|
||||
return os.path.isfile(path)
|
||||
@ -157,4 +165,3 @@ class OSRPC:
|
||||
@staticmethod
|
||||
def get_logical_devices():
|
||||
return list_logical_devices()
|
||||
|
||||
|
Reference in New Issue
Block a user