refactor(os): rename autostart classes to os classes
These perform OS-specific functions
This commit is contained in:
@@ -3,7 +3,7 @@ import sys
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from rewind.core import clip, mark, save, print_markers
|
from rewind.core import clip, mark, save, print_markers
|
||||||
from rewind.autostart.main import enable_autostart, disable_autostart, start_daemon, stop_daemon
|
from rewind.os.main import enable_autostart, disable_autostart, start_daemon, stop_daemon
|
||||||
from rewind.config import Config
|
from rewind.config import Config
|
||||||
|
|
||||||
def build_clip_parser(subparsers: argparse._SubParsersAction) -> None:
|
def build_clip_parser(subparsers: argparse._SubParsersAction) -> None:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class AutostartBackend:
|
class OSBackend:
|
||||||
def __init__(self, program_path: str):
|
def __init__(self, program_path: str):
|
||||||
self.program_path = program_path
|
self.program_path = program_path
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from rewind.autostart.autostart_backend import AutostartBackend
|
from rewind.os.backend import OSBackend
|
||||||
|
|
||||||
class LinuxBackend(AutostartBackend):
|
class LinuxBackend(OSBackend):
|
||||||
def __init__(self, program_path: str):
|
def __init__(self, program_path: str):
|
||||||
super().__init__(program_path)
|
super().__init__(program_path)
|
||||||
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
import platform
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from rewind.autostart.linux import LinuxBackend
|
from rewind.os.linux import LinuxBackend
|
||||||
|
|
||||||
APP_NAME = "rewind-daemon"
|
APP_NAME = "rewind-daemon"
|
||||||
|
|
||||||
Reference in New Issue
Block a user