Skip to content

Commit

Permalink
Allow use of relative file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Jan 22, 2025
1 parent e4d710b commit 4c234fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fastcs/transport/epics/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def create_gui(self, options: EpicsGUIOptions | None = None) -> None:
device = Device(label=options.title, children=components)

formatter = DLSFormatter()
formatter.format(device, options.output_path)
formatter.format(device, options.output_path.resolve())

Check warning on line 125 in src/fastcs/transport/epics/gui.py

View check run for this annotation

Codecov / codecov/patch

src/fastcs/transport/epics/gui.py#L125

Added line #L125 was not covered by tests

def extract_mapping_components(self, mapping: SingleMapping) -> Tree:
components: Tree = []
Expand Down
4 changes: 2 additions & 2 deletions src/fastcs/transport/epics/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@dataclass
class EpicsDocsOptions:
path: Path = Path.cwd()
path: Path = Path(".")
depth: int | None = None


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

@dataclass
class EpicsGUIOptions:
output_path: Path = Path.cwd() / "output.bob"
output_path: Path = Path(".") / "output.bob"
file_format: EpicsGUIFormat = EpicsGUIFormat.bob
title: str = "Simple Device"

Expand Down

0 comments on commit 4c234fd

Please sign in to comment.