File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,22 @@ def main(
40
40
EigerIp = typer .Option ("127.0.0.1" , help = "IP address of Eiger detector" )
41
41
EigerPort = typer .Option (8081 , help = "Port of Eiger HTTP server" )
42
42
43
+ OPI_PATH = Path ("/epics/opi" )
44
+
43
45
44
46
@app .command ()
45
47
def ioc (
46
48
pv_prefix : str = typer .Argument (),
47
49
ip : str = EigerIp ,
48
50
port : int = EigerPort ,
49
51
):
52
+ ui_path = OPI_PATH if OPI_PATH .is_dir () else Path .cwd ()
53
+
50
54
mapping = get_controller_mapping (ip , port )
51
55
52
56
backend = EpicsBackend (mapping , pv_prefix )
53
57
backend .create_gui (
54
- EpicsGUIOptions (
55
- output_path = Path .cwd () / "eiger.bob" , title = f"Eiger - { pv_prefix } "
56
- )
58
+ EpicsGUIOptions (output_path = ui_path / "eiger.bob" , title = f"Eiger - { pv_prefix } " )
57
59
)
58
60
backend .get_ioc ().run ()
59
61
You can’t perform that action at this time.
0 commit comments