Skip to content

Commit b5de190

Browse files
committed
Allow use of relative file paths
1 parent f67c15a commit b5de190

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fastcs/transport/epics/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def create_gui(self, options: EpicsGUIOptions | None = None) -> None:
122122
device = Device(label=options.title, children=components)
123123

124124
formatter = DLSFormatter()
125-
formatter.format(device, options.output_path)
125+
formatter.format(device, options.output_path.resolve())
126126

127127
def extract_mapping_components(self, mapping: SingleMapping) -> Tree:
128128
components: Tree = []

src/fastcs/transport/epics/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@dataclass
77
class EpicsDocsOptions:
8-
path: Path = Path.cwd()
8+
path: Path = Path(".")
99
depth: int | None = None
1010

1111

@@ -16,7 +16,7 @@ class EpicsGUIFormat(Enum):
1616

1717
@dataclass
1818
class EpicsGUIOptions:
19-
output_path: Path = Path.cwd() / "output.bob"
19+
output_path: Path = Path(".") / "output.bob"
2020
file_format: EpicsGUIFormat = EpicsGUIFormat.bob
2121
title: str = "Simple Device"
2222

0 commit comments

Comments
 (0)