Skip to content

Commit 8cc5a97

Browse files
committed
fix(url): provide url to user when using from conda
1 parent 4a264de commit 8cc5a97

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/e3sm_quickview/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ def _tauri_ready(self, **_):
122122
"/index.html?ui=main&reconnect=auto\n\n".encode(),
123123
)
124124
else:
125+
base_url = "http://localhost"
125126
os.write(1, f"tauri-server-port={self.server.port}\n".encode())
127+
os.write(
128+
1,
129+
"\nUse URL below to connect to the application:\n\n => "
130+
f"{base_url}:{self.server.port}/\n\n".encode(),
131+
)
126132

127133
@life_cycle.client_connected
128134
def _tauri_show(self, **_):

0 commit comments

Comments
 (0)