Blob Blame History Raw
From e423122d430cee92e42b7343dbd9966805a47e1a Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Fri, 13 Jan 2023 10:52:25 +0000
Subject: [PATCH 6/6] Use online documentation

---
 pynest/nest/lib/hl_api_info.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/pynest/nest/lib/hl_api_info.py b/pynest/nest/lib/hl_api_info.py
index ba26a83e0..6d2e3b8ea 100644
--- a/pynest/nest/lib/hl_api_info.py
+++ b/pynest/nest/lib/hl_api_info.py
@@ -81,12 +81,10 @@ def helpdesk():
     docdir = sli_func("statusdict/prgdocdir ::")
     help_fname = os.path.join(docdir, 'html', 'index.html')
 
-    if not os.path.isfile(help_fname):
-        msg = "Sorry, the help index cannot be opened. "
-        msg += "Did you run 'make html' before running 'make install'?"
-        raise FileNotFoundError(msg)
-
-    webbrowser.open_new(f"file://{help_fname}")
+    if os.path.isfile(help_fname):
+        webbrowser.open_new(f"file://{help_fname}")
+    else:
+        webbrowser.open_new("https://nest-simulator.readthedocs.io/")
 
 
 @check_stack
-- 
2.39.0