-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
class ReportByOpeningFile(Reporter):
@staticmethod
def get_command(received_path: str) -> List[str]:
system = platform.system()
if system == "Darwin":
return ["open", received_path]
if system == "Windows":
return ["start", received_path]
return ["xdg-open", received_path]
def report(self, received_path: str, approved_path: str) -> bool:
command_array = self.get_command(received_path)
call(command_array)
return True
Metadata
Metadata
Assignees
Labels
No labels