From c5930b4107c212dc652f958728e343f366179691 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 14 Sep 2024 16:24:10 +0200 Subject: [PATCH] os.os --- rwx/os/__init__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rwx/os/__init__.py b/rwx/os/__init__.py index 1594cbb..3dfa782 100644 --- a/rwx/os/__init__.py +++ b/rwx/os/__init__.py @@ -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))