Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

puts package version?

58 views
Skip to first unread message

bjlockie

unread,
Jul 17, 2012, 1:24:56 PM7/17/12
to
Is there a command to get the package version of X when 'package require X' is done?

Don Porter

unread,
Jul 17, 2012, 1:42:31 PM7/17/12
to
On 07/17/2012 01:24 PM, bjlockie wrote:
> Is there a command to get the package version of X when 'package require X' is done?

package present X

or

package provide X

--
| Don Porter Applied and Computational Mathematics Division |
| donald...@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|

Neil

unread,
Aug 1, 2012, 3:25:24 PM8/1/12
to
or just the return of the require itself, if you just want to know the version that got loaded:

set xv [package require X]
puts "X Version $xv"
0 new messages