-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscreen_ruler.py
More file actions
44 lines (37 loc) · 1.25 KB
/
Copy pathscreen_ruler.py
File metadata and controls
44 lines (37 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
"""Compatibility facade for screen-ruler modules.
This module keeps existing imports stable while implementation details
are split into smaller files.
"""
from __future__ import annotations
# Keep module aliases for test monkeypatch paths like:
# monkeypatch.setattr("screen_ruler.shutil.which", ...)
# monkeypatch.setattr("screen_ruler.subprocess.run", ...)
import shutil as shutil
import subprocess as subprocess
from ruler.app import find_qml as _find_qml
from ruler.app import main, parse_args
from ruler.backend import RulerBackend
from ruler.capture import _capture_screen_external, _capture_tool_hint, capture_screen
from ruler.core import compute_edge_map, trace_ray
from ruler.overlay import (
create_debug_edge_overlay_source as _create_debug_edge_overlay_source,
create_screenshot_overlay_source as _create_screenshot_overlay_source,
edge_map_to_qimage as _edge_map_to_qimage,
)
__all__ = [
"RulerBackend",
"_capture_screen_external",
"_capture_tool_hint",
"_create_debug_edge_overlay_source",
"_create_screenshot_overlay_source",
"_edge_map_to_qimage",
"_find_qml",
"capture_screen",
"compute_edge_map",
"main",
"parse_args",
"trace_ray",
]
if __name__ == "__main__":
main()