mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-02 02:38:30 +02:00
12 lines
No EOL
342 B
Python
12 lines
No EOL
342 B
Python
from typing import TYPE_CHECKING
|
|
from source.translation import translate as _
|
|
|
|
if TYPE_CHECKING:
|
|
from pathlib import Path
|
|
|
|
Tag = str
|
|
|
|
|
|
class PathOutsideAllowedRange(Exception):
|
|
def __init__(self, forbidden_path: "Path", allowed_range: "Path"):
|
|
super().__init__(_("ERROR_PATH_OUTSIDE_RANGE") % (forbidden_path, allowed_range)) |