Mark Lakata wrote:
>
> set fullpath [module-info name]
>
> set version [file tail [module-info name]]
>
> seems to work in 2.2beta
>
That gives you the name of the modulefile. I need the full name from the
command line. I'm try to create a .version file that does something
smart if a modulefile does not exists.
For example foo/bar/2.1 exists but foo/bar/2.2 does not I still want to
do something when someone does "module add foo/bar/2.2". Right now with
module-info name all you get back is foo/bar.
--
Robert Minsk Centropolis Effects, LLC.
eg...@ce... 10950 Washington Blvd., Studio B
Culver City, Ca. 90232-4025
|