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 14, 2025
1 parent f67c15a commit b5de190
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())

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 b5de190

Please sign in to comment.