This commit is contained in:
Marc Beninca 2024-09-14 16:24:10 +02:00
parent e75a624c46
commit c5930b4107
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -3,13 +3,11 @@
from __future__ import annotations from __future__ import annotations
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import TYPE_CHECKING from os import sep
from rwx.os.debian import Debian
if TYPE_CHECKING:
from pathlib import Path from pathlib import Path
from .debian import Debian
class OS(ABC): class OS(ABC):
"""Operating System.""" """Operating System."""
@ -27,3 +25,6 @@ class OS(ABC):
def from_path(path: Path) -> OS: def from_path(path: Path) -> OS:
"""Initialize from an already existing path.""" """Initialize from an already existing path."""
return Debian(path) return Debian(path)
os = OS.from_path(Path(sep))