Add os.call_path_module_func RPC

This commit is contained in:
Ivan Kravets
2023-05-01 11:37:44 +03:00
parent 09f1269440
commit 4596acab81

View File

@ -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()