Skip to content

Commit

Permalink
Merge pull request #751 from steffengraber/fix-issue-748
Browse files Browse the repository at this point in the history
Fix #748: For nest.helpdesk() Python 2.7.8 and later is needed
  • Loading branch information
heplesser authored Jun 13, 2017
2 parents d8f6db9 + d4f6c13 commit d64921c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pynest/nest/lib/hl_api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import subprocess
import os
import re
import sys

from string import Template

Expand Down Expand Up @@ -458,6 +459,10 @@ def show_help_with_pager(hlpobj, pager):
pager: str, optional
pager to use, NO if you explicity do not want to use a pager
"""
if sys.version_info < (2, 7, 8):
print("NEST help is only available with Python 2.7.8 or later. \n")
return

if 'NEST_INSTALL_DIR' not in os.environ:
print(
'NEST help needs to know where NEST is installed.'
Expand Down
5 changes: 5 additions & 0 deletions pynest/nest/lib/hl_api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def helpdesk():
Use the system default browser.
"""
if sys.version_info < (2, 7, 8):
print("The NEST Helpdesk is only available with Python 2.7.8 or "
"later. \n")
return

if 'NEST_DOC_DIR' not in os.environ:
print(
'NEST help needs to know where NEST is installed.'
Expand Down

0 comments on commit d64921c

Please sign in to comment.