mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07: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):
|
def open_file(path):
|
||||||
return click.launch(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
|
@staticmethod
|
||||||
def is_file(path):
|
def is_file(path):
|
||||||
return os.path.isfile(path)
|
return os.path.isfile(path)
|
||||||
@ -157,4 +165,3 @@ class OSRPC:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_logical_devices():
|
def get_logical_devices():
|
||||||
return list_logical_devices()
|
return list_logical_devices()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user