os.os
This commit is contained in:
parent
e75a624c46
commit
c5930b4107
1 changed files with 6 additions and 5 deletions
|
@ -3,12 +3,10 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import TYPE_CHECKING
|
||||
from os import sep
|
||||
from pathlib import Path
|
||||
|
||||
from rwx.os.debian import Debian
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
from .debian import Debian
|
||||
|
||||
|
||||
class OS(ABC):
|
||||
|
@ -27,3 +25,6 @@ class OS(ABC):
|
|||
def from_path(path: Path) -> OS:
|
||||
"""Initialize from an already existing path."""
|
||||
return Debian(path)
|
||||
|
||||
|
||||
os = OS.from_path(Path(sep))
|
||||
|
|
Loading…
Reference in a new issue