Skip to content

Commit

Permalink
Display correct version number also in PyNEST
Browse files Browse the repository at this point in the history
  • Loading branch information
jougs committed Aug 14, 2018
1 parent 1c51e41 commit 898ab1b
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions pynest/nest/pynest-init.sli
Expand Up @@ -77,26 +77,23 @@ def

/pywelcome
{
cout endl
() =
( -- N E S T --) =
( Copyright (C) 2004 The NEST Initiative) = () =
( Version: ) =only statusdict/rcsinfo :: =
( Built: ) =only statusdict/built :: =
() =

statusdict begin
( -- N E S T --) <- endl
endl
( Copyright (C) 2004 The NEST Initiative) <- endl
( Version ) <-
prgmajor <- (.) <- prgminor <- (.) <- prgpatch <-
( ) <- built <- endl endl ;
end
( This program is provided AS IS and comes with) =
( NO WARRANTY. See the file LICENSE for details.) =
() =

warranty

cout
(Problems or suggestions?) <- endl
( Visit http://www.nest-simulator.org) <- endl

endl
(Type 'nest.help()' to find out more about NEST.) <- endl ;
( Problems or suggestions?) =
( Visit http://www.nest-simulator.org) =
() =

( Type 'nest.help()' to find out more about NEST.) =
() =
:warnings
} def

Expand All @@ -121,3 +118,13 @@ def
} if
not % invert the return value of stopped
} bind def


% Check for rcsinfo SLI file and run it. If it does not
% exist, put an empty string into statusdict/rcsinfo.
mark
{ (rcsinfo) (r) file } stopped not
{ (rcsinfo) run }
{ statusdict /rcsinfo () put }
ifelse
] ;

0 comments on commit 898ab1b

Please sign in to comment.